type MyClass() =<?
    let instanceArray = [| "A"; "B" |]
    member x.InstanceIndexer
        with get (idx) = instanceArray.[idx]
 
[<AbstractClass>]
type MyBase() =
    abstract member AbsIndexProp : int -> string with get
 
type MyDerived() =
    inherit MyBase()
    let instanceArray = [| "A"; "B" |]
    override x.AbsIndexProp
        with get(i) = instanceArray.[ i ]

By on 8/30/2011 2:55 AM ()
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