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); }
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; }