HelperFunctions Class

This is an example of a module in VB which is represented as a sealed class with static members in C#.
Friend Class HelperFunctions
This language is not supported or no code example is available.
internal static class HelperFunctions
This language is not supported or no code example is available.
type internal HelperFunctions = class end
This language is not supported or no code example is available.
private ref class HelperFunctions 
This language is not supported or no code example is available.
internal class HelperFunctions
This language is not supported or no code example is available.
Methods
 
Name Description
Public method Static AsPrettyString(this MainClass) An example of an extension method. Returns a human readable string representing an instance of MainClass.
Public method Static Equals(object, object) Determines whether the specified object instances are considered equal. (inherited from object).
Public method Equals(object) Determines whether the specified object is equal to the current object. (inherited from object).
Protected method ~Object() Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from object).
Internal (Friend) method Static FindWindowEx(IntPtr, IntPtr, string, string) An example of an external function. Retrieves a handle to a window whose class name and window name match the specified strings.
Public method Static GetCurrentDate() Gets the current date and time.
Public method GetHashCode() Serves as the default hash function. (inherited from object).
Public method GetType() Gets the Type of the current instance. (inherited from object).
Protected method MemberwiseClone() Creates a shallow copy of the current object. (inherited from object).
Public method Static ReferenceEquals(object, object) Determines whether the specified object instances are the same instance. (inherited from object).
Internal (Friend) method Static RegisterClipboardFormat(string) An example of an external function. Registers a new clipboard format. This format can then be used as a valid clipboard format.
Public method ToString() Returns a string that represents the current object. (inherited from object).
Top
Remarks
 
In VB, you can use included methods directly without specifying HelperFunctions name.
SampleClassLibrary.Utils.HelperFunctions

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Core

Supported in: 1.0, 1.1, 2.0

.NET Standard

Supported in: 2.0

Xamarin.Android

Supported in: 7.1

Portable Class Library

Supported in: Portable Class Library

In this article

Definition