Esempio n. 1
0
        public string CreateNewText(NewCommandData <TExpression> data)
        {
            var mappedData = new DataModelNewCommandData <TExpression>
            {
                Expression = data.Expression,
                State      = data.State,
                Uri        = data.Uri,
            };

            return(_serializer.Serialize(mappedData));
        }
Esempio n. 2
0
 /// <summary>
 /// Checks if the current instance is equal to some other instance.
 /// </summary>
 /// <param name="other">The other instance.</param>
 /// <returns>True if the current instance equals the other instance, false otherwise.</returns>
 public bool Equals(NewCommandData <TExpression> other) =>
 Uri == other.Uri &&
 EqualityComparer <TExpression> .Default.Equals(Expression, other.Expression) &&
 State == other.State;