コード例 #1
0
 protected void ToString(List <string> toStringOutput)
 {
     toStringOutput.Add($"Name = {(Name == null ? "null" : Name == string.Empty ? "" : Name)}");
     toStringOutput.Add($"Description = {(Description == null ? "null" : Description == string.Empty ? "" : Description)}");
     toStringOutput.Add($"Abbreviation = {(Abbreviation == null ? "null" : Abbreviation == string.Empty ? "" : Abbreviation)}");
     toStringOutput.Add($"LabelColor = {(LabelColor == null ? "null" : LabelColor == string.Empty ? "" : LabelColor)}");
     toStringOutput.Add($"AvailableOnline = {(AvailableOnline == null ? "null" : AvailableOnline.ToString())}");
     toStringOutput.Add($"AvailableForPickup = {(AvailableForPickup == null ? "null" : AvailableForPickup.ToString())}");
     toStringOutput.Add($"AvailableElectronically = {(AvailableElectronically == null ? "null" : AvailableElectronically.ToString())}");
     toStringOutput.Add($"CategoryId = {(CategoryId == null ? "null" : CategoryId == string.Empty ? "" : CategoryId)}");
     toStringOutput.Add($"TaxIds = {(TaxIds == null ? "null" : $"[{ string.Join(", ", TaxIds)} ]")}");
     toStringOutput.Add($"ModifierListInfo = {(ModifierListInfo == null ? "null" : $"[{ string.Join(", ", ModifierListInfo)} ]")}");
     toStringOutput.Add($"Variations = {(Variations == null ? "null" : $"[{ string.Join(", ", Variations)} ]")}");
     toStringOutput.Add($"ProductType = {(ProductType == null ? "null" : ProductType.ToString())}");
     toStringOutput.Add($"SkipModifierScreen = {(SkipModifierScreen == null ? "null" : SkipModifierScreen.ToString())}");
     toStringOutput.Add($"ItemOptions = {(ItemOptions == null ? "null" : $"[{ string.Join(", ", ItemOptions)} ]")}");
 }