Re: VB2008: Getting the System.Reflection.PropertyInfo from within a class property
- From: "Armin Zingler" <az.nospam@xxxxxxxxxx>
- Date: Thu, 26 Jun 2008 19:44:33 +0200
"Etienne-Louis Nicolet" <nie.msft@xxxxxxxxxxx> schrieb
Many thanks for your tip. Since I'm quite new to VB.NET, I just try
to get into Exception handling.
The idea was the following: MyClass is responsible for the data
handling. In case user input is required the the data is passed to a
form which then returns the new/modified data back to
MyClass.MyClass validates the data. In case of errors it would send
a kind of error report (what i called my error handler) which would
finally feed the form's ErrorProviders...
Hmmm... not easy find the right approach... It also depends on where you
want to continue if an error(/exception) occurs. If you want to handle
exceptions at different locations individually but standardized - that's how
it looks in your example - you can still call a method in MyClass, and,
inside, walk the Stacktrace (Dim bla as new Stacktrace(<...>)) and retrieve
the required information, just like you can do it with "New
Stacktrace(exception)" in the case of handling exceptions. I'm writing this
without having used ErrorProviders so far...
Armin
.
- Follow-Ups:
- Re: VB2008: Getting the System.Reflection.PropertyInfo from within a class property
- From: Etienne-Louis Nicolet
- Re: VB2008: Getting the System.Reflection.PropertyInfo from within a class property
- References:
- VB2008: Getting the System.Reflection.PropertyInfo from within a class property
- From: Etienne-Louis Nicolet
- Re: VB2008: Getting the System.Reflection.PropertyInfo from within a class property
- From: Armin Zingler
- Re: VB2008: Getting the System.Reflection.PropertyInfo from within a class property
- From: Etienne-Louis Nicolet
- VB2008: Getting the System.Reflection.PropertyInfo from within a class property
- Prev by Date: Mapping or Imaging Control for Hotspots
- Next by Date: Re: Reading windows user's email address
- Previous by thread: Re: VB2008: Getting the System.Reflection.PropertyInfo from within a class property
- Next by thread: Re: VB2008: Getting the System.Reflection.PropertyInfo from within a class property
- Index(es):
Relevant Pages
|