bool IRuntimeMetadata.TryGetBinder(string name, out IMemberBinder binder) { var i = FindEntry(name); if (i >= 0) { binder = new DynamicBinder(entries[i].Key); return(true); } binder = null; return(false); }
bool IRuntimeMetadata.GetOrCreateBinder(string name, object value, System.Type type, out IMemberBinder binder) { var i = FindEntry(name); if (i >= 0) { binder = new DynamicBinder(entries[i].Key); return(true); } binder = new DynamicBinder(Insert(name, value, type)); return(true); }