Ejemplo n.º 1
0
        /// <summary>
        /// Write a type signature to the text buffer
        /// </summary>
        /// <param name="tdef">Type reference</param>
        protected override void WriteTypeSignature(TypeReference tref)
        {
            tref.Accept(this);


            if (tref.GenericParameters.Count > 0)
            {
                Replace(GenericTypeTag + tref.GenericParameters.Count, String.Empty);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Write a type signature to the text buffer
        /// </summary>
        /// <param name="tref">Type definition</param>
        protected override void WriteTypeSignature(TypeReference tref)
        {
            tref.Accept(this);

            if (tref.GenericParameters.Count <= 0)
            {
                return;
            }

            foreach (var genparam in tref.GenericParameters.Where(genparam => genparam.Constraints.Count > 0))
            {
                Write(CSharpKeyword.@where, SpaceSurrounder.Both);
                genparam.Accept(this);
                VisitVisitableCollection(GenericConstraintListStart, String.Empty, BasicSeparator, false, genparam.Constraints);
            }
        }
Ejemplo n.º 3
0
 protected override void WriteTypeSignature(TypeReference tref)
 {
     tref.Accept(this);
 }
Ejemplo n.º 4
0
 public void Reify(TypeReference node)
 {
     node.Accept(this);
 }