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.

Reply via email to