Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

LINQ: Conversion entre les type avec ‘Cast’

LINQ, All, Any, Concat, Contains, Agrégat, Union, Select, Order, From, Where
{filelink=15080}

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
 
public class ExempleCast
{
   public static void Main()
   {
            object[] doubles = {1.0, 2.0, 3.0};
            IEnumerable<double> d = doubles.Cast<double>();
            Console.Write(d);
   }
}

No comments yet.

Leave a Comment