public string GetHandlerInterfaceMethodName() { var splited = SerializedName.Split('_', StringSplitOptions.RemoveEmptyEntries); if (splited.Length > 1) { splited = splited.Skip(1).ToArray(); } return(String.Join("", splited).ToCamelCase()); }
public PropertyPya() { DefaultValue.OnGet += value => { // single quotes for these... if (SerializedName.EqualsIgnoreCase(AzureExtensions.ApiVersion) || SerializedName.EqualsIgnoreCase(AzureExtensions.AcceptLanguage)) { return(value.Replace("\"", "'")); } return(value); }; }
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); }
public string GetOperationSpecVariableName() { return(SerializedName.ToCamelCase() + "OperationSpec"); }