ConvertCamelCaseToUri() public static method

public static ConvertCamelCaseToUri ( string word ) : string
word string
return string
Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public override ResourcePropertyDetails LoadResourcePropertyDetails(ResourceProperty property)
 {
     return(new ResourcePropertyDetails(false, NameUtils.ConvertCamelCaseToUri(property.Name)));
 }