Ejemplo n.º 1
0
        public static DObject GetTypeOf(NamingContext /*!*/ namingContext, DTypeDesc caller, object typeNameOrObject)
        {
            ScriptContext context = ScriptContext.CurrentContext;
            DTypeDesc     type    = PhpObjects.ClassNameOrObjectToType(context, namingContext, caller, typeNameOrObject, true);

            if (type == null)
            {
                return(null);
            }

            return(ClrObject.Create(type.RealType));
        }