I have the following:
if (model.PartitionKey.Substring(2, 2) == \"05\" || model.PartitionKey.Substring(2, 2) == \"06\")
I have more like t
I'm surprised nobody offered switch as a possible alternative :)
switch (model.PartitionKey.SubString(2,2)) { case "05": case "06": // do stuff break; // other cases default: // like an else }
You can read more about it at MSDN