Skip to content

Instantly share code, notes, and snippets.

@codeimpossible
Created February 14, 2012 03:06
Show Gist options
  • Save codeimpossible/1823048 to your computer and use it in GitHub Desktop.
Save codeimpossible/1823048 to your computer and use it in GitHub Desktop.
SteveAustin!!!
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