by
84k 17
0
2
43k
0
Top 1% !
Specified
Popularity: 89467th place

Published on:

No tags for this snippet yet.
Architecturex86_64
LanguageC#
Windows VersionWindows7

ToDecimal: Converts a multidimensional integer array to a jagged decimal fixed-point array.

Converts a multidimensional integer array to a jagged decimal fixed-point array.
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1454377/ToDecimal--Converts-a-multidimensional-i?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
/// <summary> /// Converts a multidimensional integer array to a jagged decimal fixed-point array. /// </summary> /// #if NET45 [MethodImpl(MethodImplOptions.AggressiveInlining)] #endif public static decimal[][] ToDecimal(this int[,] value, decimal[][] result) { for (int i = 0; i < result.Length; i++) for (int j = 0; j < result[i].Length; j++) result[i][j] = (Decimal)value[i, j]; return result; }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus