Namespace: Contracts
Assembly: Contracts (in Contracts.dll)

Public Class General
This language is not supported or no code example is available.
public static class General
This language is not supported or no code example is available.
public ref class General 
This language is not supported or no code example is available.
public class General
This language is not supported or no code example is available.
Name Description
Public method Static CSVEscapeSpecialChar(string) Escape double quote, comma and new line
Public method Static CheckForInternetConnection() Check for an internet connection
Public method Static DescribeSize(long) Describe a size
Public method Static DescribeTimeSpan(TimeSpan) Describe a time span
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method Static Get7ZipPath()
Public method Static GetDescription(this Enum) Extension method for getting enum items description Make sure each enum item has System.ComponentModel.DataAnnotations.DisplayAttribute. eg [System.ComponentModel.DataAnnotations.Display(Name = "Email Contact", Description = "Email Contact from the Contact Editor / Viewer")] if the enum item doesn't have the attribute, an empty string is returned.
Public method Static GetDisplayName(this Enum) Extension method for getting enum items display name Make sure each enum item has System.ComponentModel.DataAnnotations.DisplayAttribute. eg [System.ComponentModel.DataAnnotations.Display(Name = "Email Contact", Description = "Email Contact from the Contact Editor / Viewer")] if the enum item doesn't have the attribute, the enum name is returned.
Public method Static GetEnumDescriptiveNames(Type) Get all enum items display names Make sure each enum item has System.ComponentModel.DataAnnotations.DisplayAttribute. eg [System.ComponentModel.DataAnnotations.Display(Name = "Email Contact", Description = "Email Contact from the Contact Editor / Viewer")] Note: old style still supported - System.ComponentModel.DescriptionAttribute. eg [System.ComponentModel.Description("Pie Chart")]
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method Static GetSocketError(SocketException, string, int) Describe a socket exception
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 ToString Returns a string that represents the current object. (inherited from Object).
Top
Name Description
Public field DEFAULT_PORT The default port
Public field FEATURE_VERSION The feature version
Public field PROTOCOL_VERSION The protocol version
Top

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1