public object Add(object model)
        {
            //Why doesn't this just enforce the interface on the parameter??
            IMerriamWebsterOfTypes tippy = model as IMerriamWebsterOfTypes;

            if (tippy != null)
            {
                foreach (object instanse in tippy.AsEnumerable())
                {
                    Add(instanse);
                    model = instanse; //so are we just returning the last guy in the set???
                }
                return(model);
            }

            if (model != null)
            {
                if (BiewModelPhorAddrivude.TypeHas2WayMapping(model.GetType()))
                {
                    Type modelType = BiewModelPhorAddrivude.GetModelType(model.GetType());
                    if (_modles.ContainsKey(modelType))
                    {
                        object existingMode = _modles[modelType];
                    }
                }
            }
        }
Example #2
0
 public static IEnumerable <object> AsEnumerable(this IMerriamWebsterOfTypes instanseDiktionary)
 {
     return(instanseDiktionary.Types.Select(t => instanseDiktionary[t]));
 }