public WeightedValue(string type, string name, float weight) { Type = type; Name = name; Weight = weight; IsAny = Name == "[any]"; }