ModelBuilder.CountValueGenerator.IsSupported C# (CSharp) Method

IsSupported() public method

public IsSupported ( Type type, string referenceName, LinkedList buildChain ) : bool
type System.Type
referenceName string
buildChain LinkedList
return bool
        public override bool IsSupported(Type type, string referenceName, LinkedList<object> buildChain)
        {
            var baseSupported = base.IsSupported(type, referenceName, buildChain);

            if (baseSupported == false)
            {
                return false;
            }

            if (string.IsNullOrWhiteSpace(referenceName))
            {
                return false;
            }

            if (referenceName.Equals("count", StringComparison.OrdinalIgnoreCase))
            {
                return true;
            }

            if (referenceName.Equals("length", StringComparison.OrdinalIgnoreCase))
            {
                return true;
            }

            return false;
        }