[Mono-devel-list] Patch for Accessor Modifiers

Carlos Alberto Cortez carlos at unixmexico.org
Sat Oct 16 01:12:48 EDT 2004


Hi,

Attached is a patch for a partial implementation of the accessor
modifiers, which is part of the C# 2.0 specification. This feature
brings with it the opportunity of defining modifier for the accessor.
For example:

	public string Property {
		get {
		}
		protected set {
		}
	}

What is currently missing are the checking for access permission for
overriding properties (accessors must keep the access of their parents)
and also the same check for indexers.

Some tiny tests are also attached.

I will try to implement those checks in the next days. Comments are
welcome.

Carlos.

-- 
Carlos Alberto Cortez <carlos at unixmexico.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PropertyAccessorTest.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 1254 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20041016/84331dd0/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acc-modifiers.patch
Type: text/x-patch
Size: 11522 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20041016/84331dd0/attachment-0001.bin 


More information about the Mono-devel-list mailing list