Ejemplo n.º 1
0
        public static JToken ToJson(VariantName id)
        {
            var obj = (JObject)ToJson((Identifier)id);

            obj["type"] = "VariantName";
            return(obj);
        }
Ejemplo n.º 2
0
 public static JToken ToJson(VariantName name)
 {
     return(new JObject
     {
         { "type", "varname" },
         { "name", name.Name }
     });
 }
Ejemplo n.º 3
0
        public string GetName()
        {
            StringBuilder result = new();

            if (CategoryName.HasValue())
            {
                result.Append(CategoryName);
            }
            if (ProductName.HasValue())
            {
                result.Append(ProductName);
            }
            if (VariantName.HasValue())
            {
                result.Append(VariantName);
            }
            return(result.ToString());
        }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     return(Code.GetHashCode() ^ Name.GetHashCode() ^ ShortName.GetHashCode() ^ VariantName.GetHashCode() ^ Type.GetHashCode() ^ Locale.GetHashCode());
 }
Ejemplo n.º 5
0
 public override int GetHashCode()
 {
     return(Code.GetHashCode() ^ Name.GetHashCode() ^ ShortName.GetHashCode() ^ VariantName.GetHashCode() ^ StandAloneName.GetHashCode() ^ SecondaryName.GetHashCode() ^ Locale.GetHashCode());
 }