1 write to Name
Microsoft.ML.Core (1)
ComponentModel\ComponentCatalog.cs (1)
412Name = attribute.Name;
10 references to Name
Microsoft.ML.Core (10)
ComponentModel\ComponentCatalog.cs (10)
415FriendlyName = Name; 424if (!IsValidName(Name)) 425throw Contracts.Except("Component name '{0}' is not valid.", Name); 428throw Contracts.Except("Component '{0}' has an invalid alias '{1}'", Name, Aliases.First(x => !IsValidName(x))); 623var names = (info.Aliases ?? new string[0]).Concat(new[] { info.Name }).Distinct(); 875component = _components.FirstOrDefault(x => x.InterfaceType == interfaceType && (x.Name == alias || (x.Aliases != null && x.Aliases.Contains(alias)))); 892component = _components.FirstOrDefault(x => x.InterfaceType == interfaceType && (x.Name.ToLowerInvariant() == alias || AnyMatch(alias, x.Aliases))); 920return _components.Where(x => x.Kind == kind).OrderBy(x => x.Name); 930return _components.Where(x => x.InterfaceType == interfaceType).OrderBy(x => x.Name); 955name = component.Aliases != null && component.Aliases.Length > 0 ? component.Aliases[0] : component.Name;