コード例 #1
0
ファイル: Type.cs プロジェクト: squareinc/JSC-Cross-Compiler
        public static Type GetTypeFromHandle(RuntimeTypeHandle TypeHandle)
        {
            var e = new __Type
            {
                _TypeHandle = TypeHandle
            };

            return((Type)(object)e);
        }
コード例 #2
0
ファイル: Type.cs プロジェクト: squareinc/JSC-Cross-Compiler
        internal static Type GetTypeFromValue(object x)
        {
            var e = new __Type
            {
                InternalTypeDescription = describeType(x)
            };

            return((Type)(object)e);
        }
コード例 #3
0
ファイル: Type.cs プロジェクト: squareinc/JSC-Cross-Compiler
        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);
        }
コード例 #4
0
ファイル: Type.cs プロジェクト: squareinc/JSC-Cross-Compiler
 private static bool InternalEquals(__Type x, __Type e)
 {
     return(x.InternalFullName == e.InternalFullName);
 }
コード例 #5
0
ファイル: Type.cs プロジェクト: squareinc/JSC-Cross-Compiler
 public bool Equals(__Type e)
 {
     return(InternalEquals(this, e));
 }