Wow, that was easy.  This is killer.

José, thank you as always sir.  I'll put some entries out to the wiki.

On Wed, Jul 13, 2011 at 1:28 PM, José F. Romaniello
<[email protected]>wrote:

> I did it so like this;
>
> mapper.IsSet(IsSetFieldType);
>
> Then i have a method like this:
>
> private static bool IsSetFieldType(MemberInfo mi, bool declared)
> {
>     var propertyTypeIsSet = mi.GetPropertyOrFieldType()
>         .GetGenericIntercafesTypeDefinitions()
>         .Contains(typeof(ISet<>));
>
>     if (propertyTypeIsSet) return true;
>
>     var backFieldInfo = PropertyToField.GetBackFieldInfo((PropertyInfo)mi);
>
>     return backFieldInfo != null
>            && backFieldInfo
>
> .FieldType.GetGenericIntercafesTypeDefinitions().Contains(typeof(ISet<>));
> }
>
>
> It is part of another example appliccation here:
> http://restbucks.codeplex.com/
>
> And yes, the wiki sounds good.
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to