Exemplo n.º 1
0
        private Object createModifierSelectorArgument(ConstantElement argument)
        {
            if (argument.Type == typeof(SelectorElementBase))
            {
                return(Create(argument.Value as SelectorElementBase));
            }

            return(argument.Value);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public Boolean Equals(ConstantElement other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            Equals(Value, other.Value) &&
            Type == other.Type);
 }