Ejemplo n.º 1
0
        public static Type GetTypeFromHandle(RuntimeTypeHandle TypeHandle)
        {
            var e = new __Type
            {
                _TypeHandle = TypeHandle
            };

            return((Type)(object)e);
        }
Ejemplo n.º 2
0
        internal static Type GetTypeFromValue(object x)
        {
            var e = new __Type
            {
                InternalTypeDescription = describeType(x)
            };

            return((Type)(object)e);
        }
Ejemplo n.º 3
0
        public static Type GetType(string x)
        {
            // tested by?
            // X:\jsc.svn\examples\actionscript\Test\TestThreadStart\TestThreadStart\ApplicationSprite.cs


            var e = new __Type
            {
                InternalTypeDescription = describeType(getDefinitionByName(x))
            };

            return((Type)(object)e);
        }
Ejemplo n.º 4
0
 private static bool InternalEquals(__Type x, __Type e)
 {
     return(x.InternalFullName == e.InternalFullName);
 }
Ejemplo n.º 5
0
 public bool Equals(__Type e)
 {
     return(InternalEquals(this, e));
 }