Created
May 1, 2012 01:48
-
-
Save waldyrfelix/2564309 to your computer and use it in GitHub Desktop.
Converte um dataset para array de inteiro
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
private int[] dataSetToArray(DataSet dataset) | |
{ | |
return dataset.Tables[0].Select() | |
.Select(row => Convert.ToInt32(row["ANO"])) | |
.ToArray(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment