Table of Contents

Method FromString

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

FromString(string?)

Converts a string representation of an object unique identifier into an ObjectUniqueId. instance.

public static ObjectUniqueId? FromString(string? s)

Parameters

s string

The string to convert. The string can represent either a GUID prefixed with 'A' or a numeric value.

Returns

ObjectUniqueId?

An ObjectUniqueId instance if the conversion is successful; otherwise, null.

Remarks

The method interprets the input string as follows: - If the string starts with 'A', the remainder of the string is parsed as a GUID. - If the string does not start with 'A', it is parsed as an unsigned long. If the string is null or empty, or if the parsing fails, the method returns null.