Created
February 14, 2012 03:06
-
-
Save codeimpossible/1823048 to your computer and use it in GitHub Desktop.
SteveAustin!!!
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 dynamic SteveAustin( string[] props, object[] args, object thing ) { | |
var sixmill_man = new ExpandoObject(); | |
var steve = sixmill_man as IDictionary<string, object>; | |
for( int i = 0; i < props.Length; i++ ) { | |
steve.Add( props[ i ], args[ i ] ); | |
} | |
if( thing != null ) | |
foreach( var pair in thing.ToDictionary() ) | |
if( !steve.ContainsKey( pair.Key ) ) | |
steve.Add( pair.Key, pair.Value ); | |
return sixmill_man; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment