ConvertCamelCaseToUri() 공개 정적인 메소드

public static ConvertCamelCaseToUri ( string word ) : string
word string
리턴 string
예제 #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);
        }
예제 #2
0
 public override ResourcePropertyDetails LoadResourcePropertyDetails(ResourceProperty property)
 {
     return(new ResourcePropertyDetails(false, NameUtils.ConvertCamelCaseToUri(property.Name)));
 }