CFGLib.Production.ValueEquals C# (CSharp) Method

ValueEquals() public method

Checks whether the productions have the same parts
public ValueEquals ( Production other ) : bool
other Production
return bool
		public bool ValueEquals(Production other) {
			if (this.Lhs != other.Lhs) {
				return false;
			}
			if (!this.Rhs.SequenceEqual(other.Rhs)) {
				return false;
			}
			if (this.Weight != other.Weight) {
				return false;
			}
			return true;
		}