Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Utilisation de reference comme contrainte

Non,Edité
{filelink=17486}

    using System;
    using System.Collections;
 
    public class ReferenceContrainte
    {
        public static void Main()
        {
            Z<X> objet=new Z<X>();
        }
    }
 
    public class Z<T> where T: class
    {
        public void Iterate(T data)
        {
        }
    }
    public class X
    {
    }

No comments yet.

Leave a Comment