C# Class DLaB.CrmSvcUtilExtensions.Extensions

Afficher le fichier Open project: daryllabar/DLaB.Xrm.XrmToolBoxTools

Méthodes publiques

Méthode 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 méthode

public static GetFieldInitalizedValue ( this type, string fieldName ) : string
type this
fieldName string
Résultat string

GetLocalOrDefaultText() public static méthode

public static GetLocalOrDefaultText ( this label, string defaultIfNull = null ) : string
label this
defaultIfNull string
Résultat string

GetOptions() public static méthode

public static GetOptions ( this metadata ) : List
metadata this
Résultat List

IsContextType() public static méthode

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

RemoveDiacritics() public static méthode

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.
Résultat string