Bug 32609

Summary: PropertyInfo.CanWrite behavior difference from MS.NET
Product: [Mono] Class Libraries Reporter: Sandy Armstrong [MSFT] <sandy>
Component: mscorlibAssignee: Marek Safar <masafa>
Status: RESOLVED FIXED    
Severity: normal CC: aemond, masafa, mono-bugs+mono
Priority: ---    
Version: 4.0.0   
Target Milestone: Untriaged   
Hardware: PC   
OS: Windows   
Tags: Is this bug a regression?: ---
Last known good build:

Description Sandy Armstrong [MSFT] 2015-07-30 10:11:24 UTC
Suppose you have:

class Super { public long A { get; private set; } }

class Sub : Super {}

On MS.NET, typeof(Sub).GetProperty("A").CanWrite returns false (unless you s/private/protected).

On Mono, it returns true.
Comment 1 Marek Safar 2015-07-31 03:44:19 UTC
Fixed in master
Comment 2 Rolf Bjarne Kvinge [MSFT] 2016-02-04 17:25:12 UTC
*** Bug 38461 has been marked as a duplicate of this bug. ***