Example #1
0
        public static Type GetTypeFromHandle(RuntimeTypeHandle TypeHandle)
        {
            var e = new __Type
            {
                _TypeHandle = TypeHandle
            };

            return((Type)(object)e);
        }
Example #2
0
        internal static Type GetTypeFromValue(object x)
        {
            var e = new __Type
            {
                InternalTypeDescription = describeType(x)
            };

            return((Type)(object)e);
        }
Example #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);
        }
Example #4
0
 private static bool InternalEquals(__Type x, __Type e)
 {
     return(x.InternalFullName == e.InternalFullName);
 }
Example #5
0
 public bool Equals(__Type e)
 {
     return(InternalEquals(this, e));
 }