Empty List - CSharp System.Collections.Generic

CSharp examples for System.Collections.Generic:List

Description

Empty List

Demo Code


using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Collections;

public class Main{
        public static IList<T> EmptyList<T> ()
      {//from   w  ww  .  ja  va2s .co m
         return Collections<T>.EMPTY_SET;
      }
}

Related Tutorials