Skip to content

Tag Archives: CSharp-Type-Class

Type.GetInterfaces() Method is used to get all the interfaces implemented or inherited by the current Type when overridden in a derived class. Syntax: public abstract… Read More
Type.GetHashCode() Method is used to return the hash code for this instance. Syntax: public override int GetHashCode (); Return Value: This method returns the hash… Read More
Type.GetFields() Method is used to get the fields of the current Type. There are 2 methods in the overload list of this method as follows:… Read More
Type.GetField() Method is used to get a specific field of the current Type. There are 2 methods in the overload list of this method as… Read More
Type.GetEnumNames() Method is used to return the names of the members of the current enumeration type. Syntax:  public virtual string[] GetEnumNames (); Returns: This method… Read More
Type.GetEnumUnderlyingType() Method is used to return the underlying type of the current enumeration type. Syntax:  public virtual Type GetEnumUnderlyingType (); Return Value: This method returns… Read More
Type.GetEnumValues() Method is used to return an array of the values of the constants in the current enumeration type.Syntax:  public virtual Array GetEnumValues (); Return… Read More
Type.GetDefaultMembers() Method is used to find the members defined for the current Type whose DefaultMemberAttribute is set. Syntax: public virtual System.Reflection.MemberInfo[] GetDefaultMembers (); Return Value:… Read More
Type.GetEnumName(Object) Method is used to return the name of the constant which has the specified value for the current enumeration type.  Syntax:   public virtual string… Read More
Type.GetElementType() Method is used to return the Type of the object encompassed or referred to by the current array, pointer or reference type when overridden… Read More
Type.FindInterfaces(TypeFilter, Object) Method is used to return an array of Type objects which represents a filtered list of interfaces implemented or inherited by the current… Read More
Type.GetConstructors() Method is used to get the constructors of the Type object. There are 2 methods in the overload list of this method as follows: … Read More
Type.FindMembers(MemberTypes, BindingFlags, MemberFilter, Object) Method is used to return a filtered array of MemberInfo objects of the specified member type.Syntax:   public virtual System.Reflection.MemberInfo[] FindMembers (System.Reflection.MemberTypes… Read More
Type.Equals() Method is used to check whether the underlying system type of the current Type is the same as the underlying system type of the… Read More
Type.GetArrayRank() Method is used to get the number of dimensions in an array.  Syntax: public virtual int GetArrayRank ();Return Value: This method returns an integer… Read More

Start Your Coding Journey Now!