Exemplo n.º 1
0
        internal static R __convert <R>(object obj) where R : FizzleObject
        {
            ConstructorInfo constructor = typeof(R).GetConstructor(new[] { typeof(string) });

            return(constructor == null ? null : constructor.Invoke(new object[] { ItemWrapper.GetWrapper(obj).name }) as R);
        }