Pomona.Example.CritterTypeMappingFilter.GetPropertyExpandMode C# (CSharp) Method

GetPropertyExpandMode() public method

public GetPropertyExpandMode ( Type type, PropertyInfo propertyInfo ) : ExpandMode
type System.Type
propertyInfo System.Reflection.PropertyInfo
return ExpandMode
        public override ExpandMode GetPropertyExpandMode(Type type, PropertyInfo propertyInfo)
        {
            if (propertyInfo.DeclaringType == typeof(DictionaryContainer) && propertyInfo.Name == "Map")
                return ExpandMode.Full;
            if (propertyInfo.DeclaringType == typeof(OrderResponse) && propertyInfo.Name == "Order")
                return ExpandMode.Full;

            return base.GetPropertyExpandMode(type, propertyInfo);
        }