Re: Type.GetProperty() does not work for private properties?
- From: Mattias Sjögren <mattias.dont.want.spam@xxxxxxxx>
- Date: Mon, 13 Nov 2006 19:19:35 +0100
Martin,
The problem is, that Type.GetProperty() returns null if propertyName is the
name of a private property.
Shouldn't GetProperty() also return private properties when
BindingFlags.NonPublic is specified?
Yes, and it works fine here. The property isn't static, is it? Can you
post a complete application that will reproduce the problem?
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.
- Prev by Date: restrictions on signature for ICLRuntimeHost->ExecuteInDefaultAppDomain()'s target method
- Next by Date: activex with managed assembly
- Previous by thread: restrictions on signature for ICLRuntimeHost->ExecuteInDefaultAppDomain()'s target method
- Next by thread: activex with managed assembly
- Index(es):
Relevant Pages
|