public static IComponent WrappObject(object value) { IComponent ic = value as IComponent; if (ic == null) { ic = new ComponentInterfaceWrapper(value); } return(ic); }
public static object GetObject(object value) { ComponentInterfaceWrapper ciw = value as ComponentInterfaceWrapper; if (ciw != null) { return(ciw.Value); } return(value); }