/// <summary> /// Determines whether this instance and a specified object have the same value. /// </summary> /// <param name="obj">The GuidAccessor to compare to this instance.</param> /// <returns>true if <paramref name="obj" /> is a GuidAccessor and its value is the same as this instance; otherwise, false.</returns> public override bool Equals(object obj) { GuidAccessor b = obj as GuidAccessor; if (b == null) { return(false); } return(this == b); }
/// /// <summary> /// Converts the string representation of a GUID to the equivalent <see cref="GraphEngineServer.GuidAccessor"/> /// structure. /// </summary> /// <param name="input"> /// The GUID to convert. /// </param> /// <param name="value"> /// The structure that will contain the parsed value. /// </param> /// /// <returns> /// true if the parse operation was successful; otherwise, false. /// </returns> /// public static bool TryParse(string input, out GuidAccessor value) { Guid val; if (Guid.TryParse(input, out val)) { value = val; return(true); } else { value = null; return(false); } }