diff --git a/modules/openapi-generator/src/main/resources/csharp/modelAnyOf.mustache b/modules/openapi-generator/src/main/resources/csharp/modelAnyOf.mustache
index 9b17ec27bc3..f3eac973d7c 100644
--- a/modules/openapi-generator/src/main/resources/csharp/modelAnyOf.mustache
+++ b/modules/openapi-generator/src/main/resources/csharp/modelAnyOf.mustache
@@ -18,8 +18,8 @@
///
public {{classname}}()
{
- this.IsNullable = true;
- this.SchemaType= "anyOf";
+ IsNullable = true;
+ SchemaType= "anyOf";
}
{{/isNullable}}
@@ -33,9 +33,9 @@
/// An instance of {{dataType}}.
public {{classname}}({{{dataType}}} actualInstance)
{
- this.IsNullable = {{#model.isNullable}}true{{/model.isNullable}}{{^model.isNullable}}false{{/model.isNullable}};
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance{{^model.isNullable}}{{^isPrimitiveType}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isPrimitiveType}}{{#isPrimitiveType}}{{#isArray}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isArray}}{{/isPrimitiveType}}{{#isPrimitiveType}}{{#isFreeFormObject}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isFreeFormObject}}{{/isPrimitiveType}}{{#isPrimitiveType}}{{#isString}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isString}}{{/isPrimitiveType}}{{/model.isNullable}};
+ IsNullable = {{#model.isNullable}}true{{/model.isNullable}}{{^model.isNullable}}false{{/model.isNullable}};
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance{{^model.isNullable}}{{^isPrimitiveType}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isPrimitiveType}}{{#isPrimitiveType}}{{#isArray}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isArray}}{{/isPrimitiveType}}{{#isPrimitiveType}}{{#isFreeFormObject}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isFreeFormObject}}{{/isPrimitiveType}}{{#isPrimitiveType}}{{#isString}} ?? throw new ArgumentException("Invalid instance found. Must not be null."){{/isString}}{{/isPrimitiveType}}{{/model.isNullable}};
}
{{/isNull}}
@@ -58,7 +58,7 @@
{{#anyOf}}
{{^-first}}else {{/-first}}if (value.GetType() == typeof({{{.}}}))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
{{/anyOf}}
else
@@ -78,7 +78,7 @@
/// An instance of {{dataType}}
public {{{dataType}}} Get{{#lambda.titlecase}}{{baseType}}{{/lambda.titlecase}}{{#isArray}}{{#lambda.titlecase}}{{{dataFormat}}}{{/lambda.titlecase}}{{/isArray}}()
{
- return ({{{dataType}}})this.ActualInstance;
+ return ({{{dataType}}})ActualInstance;
}
{{/isNull}}
{{/vendorExtensions.x-duplicated-data-type}}
@@ -92,7 +92,7 @@
{
var sb = new StringBuilder();
sb.Append("class {{classname}} {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -103,7 +103,7 @@
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, {{classname}}.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, {{classname}}.SerializerSettings);
}
///
@@ -150,7 +150,7 @@
return OpenAPIClientUtils.compareLogic.Compare(this, input as {{classname}}).AreEqual;
{{/useCompareNetObjects}}
{{^useCompareNetObjects}}
- return this.Equals(input as {{classname}});
+ return Equals(input as {{classname}});
{{/useCompareNetObjects}}
}
@@ -168,7 +168,7 @@
if (input == null)
return false;
- return this.ActualInstance.Equals(input.ActualInstance);
+ return ActualInstance.Equals(input.ActualInstance);
{{/useCompareNetObjects}}
}
@@ -181,8 +181,8 @@
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
index f71696c08ae..737cd420ac3 100644
--- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
+++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
@@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple.
public GmFruit(Apple actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana.
public GmFruit(Banana actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -75,11 +75,11 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(Apple))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -95,7 +95,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple
public Apple GetApple()
{
- return (Apple)this.ActualInstance;
+ return (Apple)ActualInstance;
}
///
@@ -105,7 +105,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana
public Banana GetBanana()
{
- return (Banana)this.ActualInstance;
+ return (Banana)ActualInstance;
}
///
@@ -116,7 +116,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class GmFruit {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -127,7 +127,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, GmFruit.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, GmFruit.SerializerSettings);
}
///
@@ -201,8 +201,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
index 9246bd37981..b8d4fffa4b5 100644
--- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
+++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
@@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Model
/// An instance of string.
public MixedAnyOfContent(string actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Model
/// An instance of bool.
public MixedAnyOfContent(bool actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -66,9 +66,9 @@ namespace Org.OpenAPITools.Model
/// An instance of int.
public MixedAnyOfContent(int actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -78,9 +78,9 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal.
public MixedAnyOfContent(decimal actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -90,9 +90,9 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId.
public MixedAnyOfContent(MixedSubId actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -111,23 +111,23 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(MixedSubId))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(bool))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(int))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(string))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model
/// An instance of string
public string GetString()
{
- return (string)this.ActualInstance;
+ return (string)ActualInstance;
}
///
@@ -153,7 +153,7 @@ namespace Org.OpenAPITools.Model
/// An instance of bool
public bool GetBool()
{
- return (bool)this.ActualInstance;
+ return (bool)ActualInstance;
}
///
@@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Model
/// An instance of int
public int GetInt()
{
- return (int)this.ActualInstance;
+ return (int)ActualInstance;
}
///
@@ -173,7 +173,7 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal
public decimal GetDecimal()
{
- return (decimal)this.ActualInstance;
+ return (decimal)ActualInstance;
}
///
@@ -183,7 +183,7 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId
public MixedSubId GetMixedSubId()
{
- return (MixedSubId)this.ActualInstance;
+ return (MixedSubId)ActualInstance;
}
///
@@ -194,7 +194,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class MixedAnyOfContent {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -205,7 +205,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, MixedAnyOfContent.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, MixedAnyOfContent.SerializerSettings);
}
///
@@ -315,8 +315,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
index 9907589d707..c22ccd6ebb5 100644
--- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
+++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple.
public GmFruit(Apple actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana.
public GmFruit(Banana actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -74,11 +74,11 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(Apple))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -94,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple
public Apple GetApple()
{
- return (Apple)this.ActualInstance;
+ return (Apple)ActualInstance;
}
///
@@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana
public Banana GetBanana()
{
- return (Banana)this.ActualInstance;
+ return (Banana)ActualInstance;
}
///
@@ -115,7 +115,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class GmFruit {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -126,7 +126,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, GmFruit.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, GmFruit.SerializerSettings);
}
///
@@ -200,8 +200,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
index a81b6df0419..49e94cc5e5d 100644
--- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
+++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of string.
public MixedAnyOfContent(string actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of bool.
public MixedAnyOfContent(bool actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Model
/// An instance of int.
public MixedAnyOfContent(int actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -77,9 +77,9 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal.
public MixedAnyOfContent(decimal actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId.
public MixedAnyOfContent(MixedSubId actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -110,23 +110,23 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(MixedSubId))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(bool))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(int))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(string))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -142,7 +142,7 @@ namespace Org.OpenAPITools.Model
/// An instance of string
public string GetString()
{
- return (string)this.ActualInstance;
+ return (string)ActualInstance;
}
///
@@ -152,7 +152,7 @@ namespace Org.OpenAPITools.Model
/// An instance of bool
public bool GetBool()
{
- return (bool)this.ActualInstance;
+ return (bool)ActualInstance;
}
///
@@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model
/// An instance of int
public int GetInt()
{
- return (int)this.ActualInstance;
+ return (int)ActualInstance;
}
///
@@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal
public decimal GetDecimal()
{
- return (decimal)this.ActualInstance;
+ return (decimal)ActualInstance;
}
///
@@ -182,7 +182,7 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId
public MixedSubId GetMixedSubId()
{
- return (MixedSubId)this.ActualInstance;
+ return (MixedSubId)ActualInstance;
}
///
@@ -193,7 +193,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class MixedAnyOfContent {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -204,7 +204,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, MixedAnyOfContent.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, MixedAnyOfContent.SerializerSettings);
}
///
@@ -314,8 +314,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
index 9907589d707..c22ccd6ebb5 100644
--- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
+++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple.
public GmFruit(Apple actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana.
public GmFruit(Banana actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -74,11 +74,11 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(Apple))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -94,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple
public Apple GetApple()
{
- return (Apple)this.ActualInstance;
+ return (Apple)ActualInstance;
}
///
@@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana
public Banana GetBanana()
{
- return (Banana)this.ActualInstance;
+ return (Banana)ActualInstance;
}
///
@@ -115,7 +115,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class GmFruit {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -126,7 +126,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, GmFruit.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, GmFruit.SerializerSettings);
}
///
@@ -200,8 +200,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
index a81b6df0419..49e94cc5e5d 100644
--- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
+++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of string.
public MixedAnyOfContent(string actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of bool.
public MixedAnyOfContent(bool actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Model
/// An instance of int.
public MixedAnyOfContent(int actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -77,9 +77,9 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal.
public MixedAnyOfContent(decimal actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId.
public MixedAnyOfContent(MixedSubId actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -110,23 +110,23 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(MixedSubId))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(bool))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(int))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(string))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -142,7 +142,7 @@ namespace Org.OpenAPITools.Model
/// An instance of string
public string GetString()
{
- return (string)this.ActualInstance;
+ return (string)ActualInstance;
}
///
@@ -152,7 +152,7 @@ namespace Org.OpenAPITools.Model
/// An instance of bool
public bool GetBool()
{
- return (bool)this.ActualInstance;
+ return (bool)ActualInstance;
}
///
@@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model
/// An instance of int
public int GetInt()
{
- return (int)this.ActualInstance;
+ return (int)ActualInstance;
}
///
@@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal
public decimal GetDecimal()
{
- return (decimal)this.ActualInstance;
+ return (decimal)ActualInstance;
}
///
@@ -182,7 +182,7 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId
public MixedSubId GetMixedSubId()
{
- return (MixedSubId)this.ActualInstance;
+ return (MixedSubId)ActualInstance;
}
///
@@ -193,7 +193,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class MixedAnyOfContent {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -204,7 +204,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, MixedAnyOfContent.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, MixedAnyOfContent.SerializerSettings);
}
///
@@ -314,8 +314,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/GmFruit.cs
index 9907589d707..c22ccd6ebb5 100644
--- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/GmFruit.cs
+++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/GmFruit.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple.
public GmFruit(Apple actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana.
public GmFruit(Banana actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -74,11 +74,11 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(Apple))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -94,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple
public Apple GetApple()
{
- return (Apple)this.ActualInstance;
+ return (Apple)ActualInstance;
}
///
@@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana
public Banana GetBanana()
{
- return (Banana)this.ActualInstance;
+ return (Banana)ActualInstance;
}
///
@@ -115,7 +115,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class GmFruit {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -126,7 +126,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, GmFruit.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, GmFruit.SerializerSettings);
}
///
@@ -200,8 +200,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
index a81b6df0419..49e94cc5e5d 100644
--- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
+++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of string.
public MixedAnyOfContent(string actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of bool.
public MixedAnyOfContent(bool actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Model
/// An instance of int.
public MixedAnyOfContent(int actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -77,9 +77,9 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal.
public MixedAnyOfContent(decimal actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId.
public MixedAnyOfContent(MixedSubId actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -110,23 +110,23 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(MixedSubId))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(bool))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(int))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(string))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -142,7 +142,7 @@ namespace Org.OpenAPITools.Model
/// An instance of string
public string GetString()
{
- return (string)this.ActualInstance;
+ return (string)ActualInstance;
}
///
@@ -152,7 +152,7 @@ namespace Org.OpenAPITools.Model
/// An instance of bool
public bool GetBool()
{
- return (bool)this.ActualInstance;
+ return (bool)ActualInstance;
}
///
@@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model
/// An instance of int
public int GetInt()
{
- return (int)this.ActualInstance;
+ return (int)ActualInstance;
}
///
@@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal
public decimal GetDecimal()
{
- return (decimal)this.ActualInstance;
+ return (decimal)ActualInstance;
}
///
@@ -182,7 +182,7 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId
public MixedSubId GetMixedSubId()
{
- return (MixedSubId)this.ActualInstance;
+ return (MixedSubId)ActualInstance;
}
///
@@ -193,7 +193,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class MixedAnyOfContent {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -204,7 +204,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, MixedAnyOfContent.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, MixedAnyOfContent.SerializerSettings);
}
///
@@ -314,8 +314,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
index 9907589d707..c22ccd6ebb5 100644
--- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
+++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple.
public GmFruit(Apple actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana.
public GmFruit(Banana actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -74,11 +74,11 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(Apple))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -94,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple
public Apple GetApple()
{
- return (Apple)this.ActualInstance;
+ return (Apple)ActualInstance;
}
///
@@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana
public Banana GetBanana()
{
- return (Banana)this.ActualInstance;
+ return (Banana)ActualInstance;
}
///
@@ -115,7 +115,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class GmFruit {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -126,7 +126,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, GmFruit.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, GmFruit.SerializerSettings);
}
///
@@ -200,8 +200,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
index a81b6df0419..49e94cc5e5d 100644
--- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
+++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of string.
public MixedAnyOfContent(string actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of bool.
public MixedAnyOfContent(bool actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Model
/// An instance of int.
public MixedAnyOfContent(int actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -77,9 +77,9 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal.
public MixedAnyOfContent(decimal actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId.
public MixedAnyOfContent(MixedSubId actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -110,23 +110,23 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(MixedSubId))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(bool))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(int))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(string))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -142,7 +142,7 @@ namespace Org.OpenAPITools.Model
/// An instance of string
public string GetString()
{
- return (string)this.ActualInstance;
+ return (string)ActualInstance;
}
///
@@ -152,7 +152,7 @@ namespace Org.OpenAPITools.Model
/// An instance of bool
public bool GetBool()
{
- return (bool)this.ActualInstance;
+ return (bool)ActualInstance;
}
///
@@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model
/// An instance of int
public int GetInt()
{
- return (int)this.ActualInstance;
+ return (int)ActualInstance;
}
///
@@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal
public decimal GetDecimal()
{
- return (decimal)this.ActualInstance;
+ return (decimal)ActualInstance;
}
///
@@ -182,7 +182,7 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId
public MixedSubId GetMixedSubId()
{
- return (MixedSubId)this.ActualInstance;
+ return (MixedSubId)ActualInstance;
}
///
@@ -193,7 +193,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class MixedAnyOfContent {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -204,7 +204,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, MixedAnyOfContent.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, MixedAnyOfContent.SerializerSettings);
}
///
@@ -314,8 +314,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/GmFruit.cs
index 9907589d707..c22ccd6ebb5 100644
--- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/GmFruit.cs
+++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/GmFruit.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple.
public GmFruit(Apple actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana.
public GmFruit(Banana actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -74,11 +74,11 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(Apple))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -94,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple
public Apple GetApple()
{
- return (Apple)this.ActualInstance;
+ return (Apple)ActualInstance;
}
///
@@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana
public Banana GetBanana()
{
- return (Banana)this.ActualInstance;
+ return (Banana)ActualInstance;
}
///
@@ -115,7 +115,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class GmFruit {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -126,7 +126,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, GmFruit.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, GmFruit.SerializerSettings);
}
///
@@ -200,8 +200,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
index a81b6df0419..49e94cc5e5d 100644
--- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
+++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of string.
public MixedAnyOfContent(string actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of bool.
public MixedAnyOfContent(bool actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Model
/// An instance of int.
public MixedAnyOfContent(int actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -77,9 +77,9 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal.
public MixedAnyOfContent(decimal actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId.
public MixedAnyOfContent(MixedSubId actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -110,23 +110,23 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(MixedSubId))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(bool))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(int))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(string))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -142,7 +142,7 @@ namespace Org.OpenAPITools.Model
/// An instance of string
public string GetString()
{
- return (string)this.ActualInstance;
+ return (string)ActualInstance;
}
///
@@ -152,7 +152,7 @@ namespace Org.OpenAPITools.Model
/// An instance of bool
public bool GetBool()
{
- return (bool)this.ActualInstance;
+ return (bool)ActualInstance;
}
///
@@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model
/// An instance of int
public int GetInt()
{
- return (int)this.ActualInstance;
+ return (int)ActualInstance;
}
///
@@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal
public decimal GetDecimal()
{
- return (decimal)this.ActualInstance;
+ return (decimal)ActualInstance;
}
///
@@ -182,7 +182,7 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId
public MixedSubId GetMixedSubId()
{
- return (MixedSubId)this.ActualInstance;
+ return (MixedSubId)ActualInstance;
}
///
@@ -193,7 +193,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class MixedAnyOfContent {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -204,7 +204,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, MixedAnyOfContent.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, MixedAnyOfContent.SerializerSettings);
}
///
@@ -314,8 +314,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
index 9907589d707..c22ccd6ebb5 100644
--- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
+++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple.
public GmFruit(Apple actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana.
public GmFruit(Banana actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -74,11 +74,11 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(Apple))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -94,7 +94,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple
public Apple GetApple()
{
- return (Apple)this.ActualInstance;
+ return (Apple)ActualInstance;
}
///
@@ -104,7 +104,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana
public Banana GetBanana()
{
- return (Banana)this.ActualInstance;
+ return (Banana)ActualInstance;
}
///
@@ -115,7 +115,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class GmFruit {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -126,7 +126,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, GmFruit.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, GmFruit.SerializerSettings);
}
///
@@ -200,8 +200,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
index a81b6df0419..49e94cc5e5d 100644
--- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
+++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
@@ -41,9 +41,9 @@ namespace Org.OpenAPITools.Model
/// An instance of string.
public MixedAnyOfContent(string actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -53,9 +53,9 @@ namespace Org.OpenAPITools.Model
/// An instance of bool.
public MixedAnyOfContent(bool actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Model
/// An instance of int.
public MixedAnyOfContent(int actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -77,9 +77,9 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal.
public MixedAnyOfContent(decimal actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -89,9 +89,9 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId.
public MixedAnyOfContent(MixedSubId actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -110,23 +110,23 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(MixedSubId))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(bool))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(int))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(string))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -142,7 +142,7 @@ namespace Org.OpenAPITools.Model
/// An instance of string
public string GetString()
{
- return (string)this.ActualInstance;
+ return (string)ActualInstance;
}
///
@@ -152,7 +152,7 @@ namespace Org.OpenAPITools.Model
/// An instance of bool
public bool GetBool()
{
- return (bool)this.ActualInstance;
+ return (bool)ActualInstance;
}
///
@@ -162,7 +162,7 @@ namespace Org.OpenAPITools.Model
/// An instance of int
public int GetInt()
{
- return (int)this.ActualInstance;
+ return (int)ActualInstance;
}
///
@@ -172,7 +172,7 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal
public decimal GetDecimal()
{
- return (decimal)this.ActualInstance;
+ return (decimal)ActualInstance;
}
///
@@ -182,7 +182,7 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId
public MixedSubId GetMixedSubId()
{
- return (MixedSubId)this.ActualInstance;
+ return (MixedSubId)ActualInstance;
}
///
@@ -193,7 +193,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class MixedAnyOfContent {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -204,7 +204,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, MixedAnyOfContent.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, MixedAnyOfContent.SerializerSettings);
}
///
@@ -314,8 +314,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
index 6d20d5d8d6c..fa2a72f1185 100644
--- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs
@@ -39,9 +39,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple.
public GmFruit(Apple actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -51,9 +51,9 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana.
public GmFruit(Banana actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -72,11 +72,11 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(Apple))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -92,7 +92,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Apple
public Apple GetApple()
{
- return (Apple)this.ActualInstance;
+ return (Apple)ActualInstance;
}
///
@@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
/// An instance of Banana
public Banana GetBanana()
{
- return (Banana)this.ActualInstance;
+ return (Banana)ActualInstance;
}
///
@@ -113,7 +113,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class GmFruit {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -124,7 +124,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, GmFruit.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, GmFruit.SerializerSettings);
}
///
@@ -176,7 +176,7 @@ namespace Org.OpenAPITools.Model
/// Boolean
public override bool Equals(object input)
{
- return this.Equals(input as GmFruit);
+ return Equals(input as GmFruit);
}
///
@@ -189,7 +189,7 @@ namespace Org.OpenAPITools.Model
if (input == null)
return false;
- return this.ActualInstance.Equals(input.ActualInstance);
+ return ActualInstance.Equals(input.ActualInstance);
}
///
@@ -201,8 +201,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}
diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
index 11a86288d93..7a79e22bec7 100644
--- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
@@ -39,9 +39,9 @@ namespace Org.OpenAPITools.Model
/// An instance of string.
public MixedAnyOfContent(string actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
@@ -51,9 +51,9 @@ namespace Org.OpenAPITools.Model
/// An instance of bool.
public MixedAnyOfContent(bool actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Model
/// An instance of int.
public MixedAnyOfContent(int actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -75,9 +75,9 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal.
public MixedAnyOfContent(decimal actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance;
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance;
}
///
@@ -87,9 +87,9 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId.
public MixedAnyOfContent(MixedSubId actualInstance)
{
- this.IsNullable = false;
- this.SchemaType= "anyOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
+ IsNullable = false;
+ SchemaType= "anyOf";
+ ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -108,23 +108,23 @@ namespace Org.OpenAPITools.Model
{
if (value.GetType() == typeof(MixedSubId))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(bool))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(int))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else if (value.GetType() == typeof(string))
{
- this._actualInstance = value;
+ _actualInstance = value;
}
else
{
@@ -140,7 +140,7 @@ namespace Org.OpenAPITools.Model
/// An instance of string
public string GetString()
{
- return (string)this.ActualInstance;
+ return (string)ActualInstance;
}
///
@@ -150,7 +150,7 @@ namespace Org.OpenAPITools.Model
/// An instance of bool
public bool GetBool()
{
- return (bool)this.ActualInstance;
+ return (bool)ActualInstance;
}
///
@@ -160,7 +160,7 @@ namespace Org.OpenAPITools.Model
/// An instance of int
public int GetInt()
{
- return (int)this.ActualInstance;
+ return (int)ActualInstance;
}
///
@@ -170,7 +170,7 @@ namespace Org.OpenAPITools.Model
/// An instance of decimal
public decimal GetDecimal()
{
- return (decimal)this.ActualInstance;
+ return (decimal)ActualInstance;
}
///
@@ -180,7 +180,7 @@ namespace Org.OpenAPITools.Model
/// An instance of MixedSubId
public MixedSubId GetMixedSubId()
{
- return (MixedSubId)this.ActualInstance;
+ return (MixedSubId)ActualInstance;
}
///
@@ -191,7 +191,7 @@ namespace Org.OpenAPITools.Model
{
var sb = new StringBuilder();
sb.Append("class MixedAnyOfContent {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -202,7 +202,7 @@ namespace Org.OpenAPITools.Model
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, MixedAnyOfContent.SerializerSettings);
+ return JsonConvert.SerializeObject(ActualInstance, MixedAnyOfContent.SerializerSettings);
}
///
@@ -290,7 +290,7 @@ namespace Org.OpenAPITools.Model
/// Boolean
public override bool Equals(object input)
{
- return this.Equals(input as MixedAnyOfContent);
+ return Equals(input as MixedAnyOfContent);
}
///
@@ -303,7 +303,7 @@ namespace Org.OpenAPITools.Model
if (input == null)
return false;
- return this.ActualInstance.Equals(input.ActualInstance);
+ return ActualInstance.Equals(input.ActualInstance);
}
///
@@ -315,8 +315,8 @@ namespace Org.OpenAPITools.Model
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ if (ActualInstance != null)
+ hashCode = hashCode * 59 + ActualInstance.GetHashCode();
return hashCode;
}
}