Assuming that this is a non-generic IEnumerable (Current returns object, not DisplayMode), probably the best thing is something like

for (dm : DisplayMode) in SupportedDisplayModes |> Seq.cast do

(hopefully I typed that right; not able to try it out right now.)

By on 3/19/2009 8:57 PM ()

brianmcn , It's work! You are so professional, thx alot.

By on 3/19/2009 11:50 PM ()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 

    public sealed class DisplayModeCollection : IEnumerable, IEnumerator

    {

                public int Count { get; }

               public override object Current { get; }

                public DisplayModeCollection this[Format f] { get; }

                public override bool Equals(object compare);

                public override IEnumerator GetEnumerator();

                public override int GetHashCode();

                public override bool MoveNext();

               public override void Reset();

    }
By on 3/19/2009 7:18 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper