Csla 3.5.1 AllowExecute
Old forum URL: forums.lhotka.net/forums/t/5233.aspx
ajj3085 posted on Tuesday, August 12, 2008
Hi,
I noticed something that seems odd to me. AuthorizationRules.AllowExecute has an overload that accepts a PropertyInfo`T parameter.
Just wondering how that overload is supposed to work... I wouldn't expect to create a PropertyInfo for a method call.
Thanks
Andy
RockfordLhotka replied on Tuesday, August 12, 2008
That's a good point. Though without it, you'd have to pass a string literal to AllowExecute...ajj3085 replied on Wednesday, August 13, 2008
Well, that's what I ended up doing, since it's not clear to me how to properly create a PropertyInfo for a method. Would Name be the name of the method? What happens if you set other values for PropertyInfo? Maybe a MethodInfo`T would be a good idea to make things more clear.
Copyright (c) Marimer LLC