Last active
August 26, 2016 18:40
-
-
Save kristoferdoman/8d48497b6fa890c89de7 to your computer and use it in GitHub Desktop.
Revisions
-
kristoferdoman renamed this gist
Aug 26, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
kristoferdoman renamed this gist
Aug 26, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
kristoferdoman revised this gist
Apr 6, 2016 . No changes.There are no files selected for viewing
-
kristoferdoman revised this gist
Apr 6, 2016 . 2 changed files with 14 additions and 14 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,14 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ Public Function ToDictionary() As Dictionary(Of String, Object) Dim dictionary As Dictionary(Of String, Object) = New Dictionary(Of String, Object) For Each property_info As Reflection.PropertyInfo In [GetType].GetProperties() Try Console.WriteLine("name: " + property_info.Name + " value: " + property_info.GetValue(Me, Nothing).ToString) dictionary.Add(property_info.Name, property_info.GetValue(Me, Nothing).ToString) Catch ex As Exception dictionary.Add(property_info.Name, ex.Message) End Try Next Return dictionary End Function -
kristoferdoman revised this gist
Aug 19, 2015 . No changes.There are no files selected for viewing
-
kristoferdoman created this gist
Aug 19, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ Public Function ToDictionary() As Dictionary(Of String, Object) Dim dictionary As Dictionary(Of String, Object) = New Dictionary(Of String, Object) For Each property_info As Reflection.PropertyInfo In [GetType].GetProperties() Try Console.WriteLine("name: " + property_info.Name + " value: " + property_info.GetValue(Me, Nothing).ToString) dictionary.Add(property_info.Name, property_info.GetValue(Me, Nothing).ToString) Catch ex As Exception dictionary.Add(property_info.Name, ex.Message) End Try Next Return dictionary End Function