FindFirstValueProperty() 공개 메소드

public FindFirstValueProperty ( ) : Property
리턴 Property
예제 #1
0
        private string GetDefaultValueType(Schema schema)
        {
            Property firstValueProperty = schema.FindFirstValueProperty();

            if (firstValueProperty != null)
            {
                OverloadInfo[] overloads = GetOverloadsForProperty(firstValueProperty);
                OverloadInfo   firstOverloadWithOneParameter = Array.Find(overloads, overload => overload.Parameters.Length == 1);
                if (firstOverloadWithOneParameter != null)
                {
                    return(firstOverloadWithOneParameter.Parameters[0].Type);
                }
            }

            return(null);
        }
예제 #2
0
        private string GetDefaultValueType(Schema schema)
        {
            Property firstValueProperty = schema.FindFirstValueProperty();

            if (firstValueProperty != null)
            {
                OverloadInfo[] overloads = GetOverloadsForProperty(firstValueProperty);
                OverloadInfo firstOverloadWithOneParameter = Array.Find(overloads, overload => overload.Parameters.Length == 1);
                if (firstOverloadWithOneParameter != null)
                {
                    return firstOverloadWithOneParameter.Parameters[0].Type;
                }
            }

            return null;
        }