public GetReflectionType ( object instance ) : |
||
instance | object | |
return |
public Type GetReflectionType(object instance)
{
if (instance == null)
{
throw new ArgumentNullException("instance");
}
return GetReflectionType(instance.GetType(), instance);
}
TypeDescriptionProvider::GetReflectionType ( |
|
TypeDescriptionProvider::GetReflectionType ( |
/// <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); }