Example #1
0
 public void Inject(object value)
 {
     if (value != null)
     {
         var typeProvider = DescriptionProvider.GetProvider(value.GetType());
         ApplyResolver(value, typeProvider);
     }
 }
        protected virtual void ParseParentProvider(Type type, MemberKind kind, DescriptionProvider provider)
        {
            var baseType = type.BaseType;

            if (baseType != null && baseType != ObjectType && (BaseType == null || BaseType != baseType))
            {
                _parent = provider.GetProvider(baseType, kind);
            }
        }