Click here to Skip to main content
16,006,605 members

Comments by Jim from Indy (Top 5 by date)

Jim from Indy 25-May-11 10:58am View    
I did change the EZLogger declaration in the .cs file from "class EZLogger" to "public class EZLogger", and that eliminated the "inconsistent accessibility" error. The other two errors persist. Should point out I'm using VS2005.
Jim from Indy 25-May-11 10:48am View    
I am grateful for your answer. I needed to understand what I misunderstood so I could make it work. I looked up static classes in my reference book, and it gives them short shrift, so I needed to rely on you to understand what I did wrong. Never suggested you were wrong. Sorry if I gave that impression.
Jim from Indy 23-May-11 9:37am View    
John, any ideas?
Jim from Indy 20-May-11 16:06pm View    
I put it in the same namespace as my main program. It said "cannot declare instance members in a static class..." and "Inconsistent accessibility: property type 'RavSoft.EZLogger' is less accessible than property 'BuyerFeedback.Globals.Logger'" -- EZLogger, obviously, is in a different namespace.
Jim from Indy 20-May-11 15:52pm View    
Mark, I think you exceeded my expertise. I don't want to pass the instance. Too many methods. I don't know how to create the clas as a static object. I'm not sure how to create a container class for this, though since I'm only using a few methods, this sounds intriguing. I didn't understand "Expose events....", and I just printed the article on the Microsoft Enterprise Library.

Thanks for the push. If you'd care to expound on the options I didn't understand, I'll be grateful, but you've gotten me started. Thanks!