System.ComponentModel.TypeDescriptionProvider.GetReflectionType C# (CSharp) Method

GetReflectionType() public method

public GetReflectionType ( Type objectType ) : Type
objectType System.Type
return System.Type
        public Type GetReflectionType(Type objectType)
        {
            return GetReflectionType(objectType, null);
        }

Same methods

TypeDescriptionProvider::GetReflectionType ( Type objectType, object instance ) : Type
TypeDescriptionProvider::GetReflectionType ( object instance ) : Type

Usage Example

 /// <summary>Performs normal reflection against the given object with the given type.</summary>
 /// <returns>A <see cref="T:System.Type" />.</returns>
 /// <param name="objectType">The type of object for which to retrieve the <see cref="T:System.Reflection.IReflect" />.</param>
 /// <param name="instance">An instance of the type. Can be null.</param>
 public virtual Type GetReflectionType(Type objectType, object instance)
 {
     if (_parent != null)
     {
         return(_parent.GetReflectionType(objectType, instance));
     }
     return(objectType);
 }
All Usage Examples Of System.ComponentModel.TypeDescriptionProvider::GetReflectionType