Created
January 2, 2011 06:03
-
-
Save chaliy/762335 to your computer and use it in GitHub Desktop.
Idea of the input anonymous types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Unlike Tupe<T1, T2, T3> this stuff has names. This is important for readability. | |
public void ApplyVariationsWithStocks(IEnumerable<{ String SKU, | |
NameValuePair[] Values, | |
int AvailableQty }> variations) | |
{ | |
foreach(var variation in variations ) | |
{ | |
Console.WriteLine("SKU: {0}; Values: {1}; AvailableQty: {2}", | |
variation.SKU, | |
variation.Values, | |
variation.AvailableQty); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment