Skip to content

Tag Archives: CSharp-method

Methods in C# programming language

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 This method is used to search for… 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
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

Start Your Coding Journey Now!