コード例 #1
0
        public string GetHandlerInterfaceMethodName()
        {
            var splited = SerializedName.Split('_', StringSplitOptions.RemoveEmptyEntries);

            if (splited.Length > 1)
            {
                splited = splited.Skip(1).ToArray();
            }
            return(String.Join("", splited).ToCamelCase());
        }
コード例 #2
0
ファイル: PropertyPya.cs プロジェクト: vrdmr/autorest.python
 public PropertyPya()
 {
     DefaultValue.OnGet += value =>
     {
         // single quotes for these...
         if (SerializedName.EqualsIgnoreCase(AzureExtensions.ApiVersion) || SerializedName.EqualsIgnoreCase(AzureExtensions.AcceptLanguage))
         {
             return(value.Replace("\"", "'"));
         }
         return(value);
     };
 }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SerializedName.Length != 0)
            {
                hash ^= SerializedName.GetHashCode();
            }
            hash ^= difficulties_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
 public string GetOperationSpecVariableName()
 {
     return(SerializedName.ToCamelCase() + "OperationSpec");
 }