public static ConvertCamelCaseToUri ( string word ) : string | ||
word | string | |
return | string |
public static bool TryGetPropertyByUriName(this ResourceType type, string name, out PropertySpec property) { if (type == null) { throw new ArgumentNullException(nameof(type)); } if (name == null) { throw new ArgumentNullException(nameof(name)); } property = type.Properties.FirstOrDefault( x => (x.PropertyType is ResourceType || x.PropertyType is EnumerableTypeSpec) && String.Equals(name, NameUtils.ConvertCamelCaseToUri(x.Name), StringComparison.InvariantCultureIgnoreCase)); return(property != null); }
public override ResourcePropertyDetails LoadResourcePropertyDetails(ResourceProperty property) { return(new ResourcePropertyDetails(false, NameUtils.ConvertCamelCaseToUri(property.Name))); }