3 using System.Globalization;
6 namespace SiliconStudio.Shaders.Ast.Hlsl
13 #region Constants and Fields
30 private static readonly
StreamTypeName[] StreamTypesName =
new[] { PointStream, LineStream, TriangleStream };
49 : base(name, altNames)
57 return base.Equals(other);
61 public override bool Equals(
object obj)
63 if (ReferenceEquals(null, obj))
67 if (ReferenceEquals(
this, obj))
77 return base.GetHashCode();
90 return Equals(left, right);
103 return !Equals(left, right);
113 return StreamTypesName.FirstOrDefault(streamType => string.Compare(name, streamType.Name.Text,
true, CultureInfo.InvariantCulture) == 0);
override int GetHashCode()
StreamTypeName()
Initializes a new instance of the StreamTypeName class.
bool Equals(StreamTypeName other)
StreamTypeName(string name, params string[] altNames)
Initializes a new instance of the StreamTypeName class.
static StreamTypeName Parse(string name)
Parses the specified name.
override bool Equals(object obj)