Ejemplo n.º 1
0
        private void AnalyGeneric_1()
        {
            Token genericArgTypeToken = TypeTokens[0];
            ZType genericArgZType     = SearchZType(genericArgTypeToken);

            if (genericArgZType != null)
            {
                Type  newType  = mainZType.SharpType.MakeGenericType(genericArgZType.SharpType);
                ZType newZtype = ZTypeManager.RegNewGenericType(newType);
                RetType = newZtype;
            }
        }
Ejemplo n.º 2
0
        private void AnalyGeneric_2()
        {
            Token genericArgTypeToken1 = TypeTokens[0];
            Token genericArgTypeToken2 = TypeTokens[1];
            ZType genericArgZType1     = SearchZType(genericArgTypeToken1);
            ZType genericArgZType2     = SearchZType(genericArgTypeToken2);

            if (genericArgZType1 != null && genericArgZType2 != null)
            {
                Type  newType  = mainZType.SharpType.MakeGenericType(genericArgZType1.SharpType, genericArgZType2.SharpType);
                ZType newZtype = ZTypeManager.RegNewGenericType(newType);
                RetType = newZtype;
            }
        }