Exemple #1
0
            public void AppendClrName(RQType type)
            {
                bool isKnownType =
                    Call <RQTypeVariableType>(Append, type) ||
                    Call <RQConstructedType>(Append, type) ||
                    Call <RQArrayType>(Append, type) ||
                    Call <RQPointerType>(t => { AppendClrName(t.ElementType); sb.Append('*'); }, type) ||
                    Call <RQVoidType>(t => sb.Append("Void"), type)
                ;

                if (!isKnownType)
                {
                    throw new ArgumentException("Unknown RQType " + type, "type");
                }
            }
Exemple #2
0
 public RQArrayOrPointerType(RQType elementType)
 {
     ElementType = elementType;
 }
 public RQArrayOrPointerType(RQType elementType)
 {
     this.ElementType = elementType;
 }