Even though I used private as keyword, the accessibility of member method Increase is internal when reflected the dll.

This is not a bug; this is as per the spec:

[link:research.microsoft.com]

The CLI compiled form of all non-public entities is internal.

By on 3/4/2010 8:05 AM ()

It's not fixed in 1.9.9.9 :-(

By on 3/4/2010 5:34 AM ()

Hi dreamwinter,

please report this to fsbugs@microsoft.com

regards,

Danny

By on 1/8/2009 3:39 AM ()

I'm guess this is a compiler bug, but there's an easy work around, all let bindings are private so you can just deleclare an increase and decrease function as a let binding:

1
2
3
4
5
6
7
type LifeService(t:System.Type) = 
  let mutable counter = 0
  let xcounter = ref 0
  let increase() = incr xcounter
  let decrease() = decr xcounter
  member x.InstanceType with get() = t
  member x.Counter with get() = counter
By on 1/8/2009 1:21 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