numl.Model.GuidProperty.Convert C# (CSharp) Méthode

Convert() public méthode

Convert guid to list of numbers.
Thrown when the requested operation is invalid.
public Convert ( object o ) : IEnumerable
o object in guid.
Résultat IEnumerable
        public override IEnumerable<double> Convert(object o)
        {
            // check for valid cateogry list
            if (Categories == null || Categories.Length == 0)
                throw new InvalidOperationException(string.Format("{0} categories do not exist.", Name));

            for (int i = 0; i < Categories.Length; i++)
            {
                if (Categories[i] == (o as Guid?))
                {
                    yield return i;
                }
            }
        }

Same methods

GuidProperty::Convert ( double val ) : object