static public ToUniqueId ( string value ) : |
||
value | string | |
return |
static public UniqueId ToUniqueId(string value)
{
try
{
return new UniqueId(Trim(value));
}
catch (ArgumentException exception)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "UniqueId", exception));
}
catch (FormatException exception)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "UniqueId", exception));
}
}
XmlConverter::ToUniqueId ( byte buffer, int offset, int count ) : |
public UniqueId ToUniqueId() { if (_type == ValueHandleType.UniqueId) { return(GetUniqueId()); } if (_type == ValueHandleType.UTF8) { return(XmlConverter.ToUniqueId(_bufferReader.Buffer, _offset, _length)); } return(XmlConverter.ToUniqueId(GetString())); }