Utilisation de reference comme contrainte

Author:

Non,Edité
{filelink=17486}

    using System;
    using System.Collections;

    public class ReferenceContrainte
    {
        public static void Main()
        {
            Z objet=new Z();
        }
    }

    public class Z where T: class
    {
        public void Iterate(T data)
        {
        }
    }
    public class X
    {
    }

Leave a Reply

Your email address will not be published. Required fields are marked *