C# Class Rebel.Framework.HiveIdExtensions

Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Méthode Description
CompareStrings ( string left, string right, bool ignoreProviderId = true ) : bool

Compares two strings by parsing them as HiveId to check equality.

ConvertToEmptyIfNullValue ( this id ) : HiveId

Returns null if the id is null or empty, otherwise returns the id

GetHtmlId ( this id ) : string

Convert the HiveId to a compatible Id used for Html elements

IsNullValueOrEmpty ( this id ) : bool

Determines whether id is null or empty.

NullIfEmpty ( this id ) : HiveId?
StringParts ( this id ) : string[]
ToJsonObject ( this id ) : Newtonsoft.Json.Linq.JObject

Returns a JObject representing the HiveId for use in JavaScript

TryParseFromHtmlId ( string htmlId ) : AttemptTuple

Method Details

CompareStrings() public static méthode

Compares two strings by parsing them as HiveId to check equality.
public static CompareStrings ( string left, string right, bool ignoreProviderId = true ) : bool
left string The left.
right string The right.
ignoreProviderId bool
Résultat bool

ConvertToEmptyIfNullValue() public static méthode

Returns null if the id is null or empty, otherwise returns the id
public static ConvertToEmptyIfNullValue ( this id ) : HiveId
id this
Résultat HiveId

GetHtmlId() public static méthode

Convert the HiveId to a compatible Id used for Html elements
public static GetHtmlId ( this id ) : string
id this
Résultat string

IsNullValueOrEmpty() public static méthode

Determines whether id is null or empty.
public static IsNullValueOrEmpty ( this id ) : bool
id this The id.
Résultat bool

NullIfEmpty() public static méthode

public static NullIfEmpty ( this id ) : HiveId?
id this
Résultat HiveId?

StringParts() public static méthode

public static StringParts ( this id ) : string[]
id this
Résultat string[]

ToJsonObject() public static méthode

Returns a JObject representing the HiveId for use in JavaScript
public static ToJsonObject ( this id ) : Newtonsoft.Json.Linq.JObject
id this
Résultat Newtonsoft.Json.Linq.JObject

TryParseFromHtmlId() public static méthode

public static TryParseFromHtmlId ( string htmlId ) : AttemptTuple
htmlId string
Résultat AttemptTuple