Skip to content

Tag Archives: CSharp-Type-Class

Type.IsEnumDefined(Object) Method is used to return a value which indicates whether the specified value exists in the current enumeration type. Syntax: public virtual bool IsEnumDefined… Read More
Type.IsArrayImpl() Method is used when overridden in a derived class, implements the IsArray property and determines whether the Type is an array. Syntax: protected abstract… Read More
Type.IsAssignableFrom(Type) Method is used determine whether an instance of a specified type can be assigned to a variable of the current type. Syntax: public virtual… Read More
Type.GetTypeHandle() Method is used to get the handle for the Type of a specified object. Syntax: public static RuntimeTypeHandle GetTypeHandle (object o); Here, it takes… Read More
Type.HasElementTypeImpl() Method is used when overridden in a derived class, implementing the HasElementType property and determines whether the current Type encompasses or refers to another… Read More
Type.GetProperties() Method is used to get the properties of the current Type. There are 2 methods in the overload list of this method as follows:… Read More
Type.GetTypeCode() Method is used to get the underlying type code of the specified Type. Syntax: public static TypeCode GetTypeCode (Type type); Here, it takes the… Read More
Type.GetTypeArray() Method is used to get the types of the objects in the specified array. Syntax: public static Type[] GetTypeArray (object[] args); Here, it takes… Read More
Type.GetTypeFromHandle() Method is used to get the type referenced by the specified type handle. Syntax: public static Type GetTypeFromHandle (RuntimeTypeHandle handle); Here, it takes the… Read More
Type.GetNestedTypes() Method is used to get the types nested within the current Type. There are 2 methods in the overload list of this method as… Read More
Type.GetMember() Method is used to get the specified members of the current Type. There are 3 methods in the overload list of this method as… Read More
Type.GetNestedType() Method is used to get a specific type nested within the current Type. There are 2 methods in the overload list of this method… Read More
Type.GetMethods() Method is used to get the methods of the current Type. There are 2 methods in the overload list of this method as follows:… Read More
Type.GetInterface() Method is used to gets a specific interface implemented or inherited by the current Type. GetInterface(String) Method GetInterface(String, Boolean) Method GetInterface(String) Method This method… Read More
Type.GetMembers() Method is used to get the members (properties, methods, fields, events, and so on) of the current Type. There are 2 methods in the… Read More