Nullverweise warnings bereinigt

This commit is contained in:
2023-08-08 11:58:09 +02:00
parent 4af2bae8cd
commit ee6eb210b7
22 changed files with 125 additions and 102 deletions

View File

@@ -25,7 +25,7 @@ namespace ConsoleApp3.DataContracts
/// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; }
public Object? SevClient { get; set; }
/// <summary>
///
@@ -33,7 +33,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "number", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "number")]
public string Number { get; set; }
public string Number { get; set; } = "";
/// <summary>
///
@@ -41,7 +41,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
public string Name { get; set; } = "";
/// <summary>
///
@@ -49,7 +49,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "color", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "color")]
public string Color { get; set; }
public string Color { get; set; } = "";
/// <summary>
///
@@ -57,6 +57,6 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "postingAccount", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "postingAccount")]
public string PostingAccount { get; set; }
public string PostingAccount { get; set; } = "";
}
}