System.Data.SimpleType.CanHaveMaxLength C# (CSharp) Method

CanHaveMaxLength() private method

private CanHaveMaxLength ( ) : bool
return bool
        internal bool CanHaveMaxLength()
        {
            SimpleType rootType = this;
            while (rootType.BaseSimpleType != null)
            {
                rootType = rootType.BaseSimpleType;
            }

            return string.Equals(rootType.BaseType, "string", StringComparison.OrdinalIgnoreCase);
        }