/// <summary>Indicates whether the current object is equal to another object of the same type.</summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// <see langword="true" /> if the current object is equal to the <paramref name="other" /> parameter; otherwise, <see langword="false" />.</returns> public bool Equals(ReferenceIdentity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(Name, other.Name)); }
public static ReferenceIdentity Parse(ExpressionWalker ew) { //types: //justname ew.IsCurrentOrThrow(ExpressionToken.Literal); var ret = new ReferenceIdentity(ew.Current.Match.Value) { _match = ew.Current.Match.AsResult() }; ew.Next(); return(ret); }