C# Class DLaB.CrmSvcUtilExtensions.Extensions

Show file Open project: daryllabar/DLaB.Xrm.XrmToolBoxTools

Public Methods

Method Description
GetFieldInitalizedValue ( this type, string fieldName ) : string
GetLocalOrDefaultText ( this label, string defaultIfNull = null ) : string
GetOptions ( this metadata ) : List
IsContextType ( this type ) : bool

Determines if the type inherits from one of the known Xrm OrganizationServiceContext types.

RemoveDiacritics ( this text ) : string

Removes the diacritics. In Unicode characters with diacritics are combination of 2 (or more) characters, for example "ê" is compound of "e" and "^", "ü" is compound of "u" and "¨", etc. This method allow to only keep the base character, in my examples "e" and "u"

Method Details

GetFieldInitalizedValue() public static method

public static GetFieldInitalizedValue ( this type, string fieldName ) : string
type this
fieldName string
return string

GetLocalOrDefaultText() public static method

public static GetLocalOrDefaultText ( this label, string defaultIfNull = null ) : string
label this
defaultIfNull string
return string

GetOptions() public static method

public static GetOptions ( this metadata ) : List
metadata this
return List

IsContextType() public static method

Determines if the type inherits from one of the known Xrm OrganizationServiceContext types.
public static IsContextType ( this type ) : bool
type this The type.
return bool

RemoveDiacritics() public static method

Removes the diacritics. In Unicode characters with diacritics are combination of 2 (or more) characters, for example "ê" is compound of "e" and "^", "ü" is compound of "u" and "¨", etc. This method allow to only keep the base character, in my examples "e" and "u"
public static RemoveDiacritics ( this text ) : string
text this The text.
return string