G
Guest
I've written a DLL assembly in C#. I've built the DLL, and reference it from other projects. The assembly contains a single file, containing a single abstract class. This class contains loads of static "helper" methods, as well as a load of nested abstract classes that also contain static "helper" methods. This set up allows me to write code like the following
FormMethods.BusinessObjectEvents.HandleIsEditChanged([argument list.....])
FormMethods.ConstructorCall([argument list.....])
As you can see, the class is very "structured", but the code in the class isn't at fault. Now, straight after I add a reference to the built assembly, Intellisense works fine. When press the 'dot' key, the intellisense pops up, at all levels of the heirarchy. But then, a few minutes later, for apparently no reason at all, Intellisense on this item stops working properly (it is fine everywhere else). Then, I'll only be able to see methods at the main class level. None of the nested classes appear, so I'm not able to access their methods via Intellisense, although they are still there, since if I type them out unaided, the code compiles. I've tried all the usual stuff - this problem isn't triggered by build warnings or errors (as often happens). It's as though it's happening at random.
Historically, the referenced assembly has been a project referenced from within the same solution, an assembly referenced by picking up the compiled DLL, and an assembly registered in the GAC. In all cases, the Intellisense magically disappears at random.
The only solution I've found, is that if the reference to the assembly is removed, and then added again, I buy myself about another 2 minutes of full Intellisense before it goes again! Not an ideal situation, since the classes in the assembly are very complex, and have large argument lists. Coding them unaided is a nightmare
Any help would be greatly appreciated
Thanks
Guy.
FormMethods.BusinessObjectEvents.HandleIsEditChanged([argument list.....])
FormMethods.ConstructorCall([argument list.....])
As you can see, the class is very "structured", but the code in the class isn't at fault. Now, straight after I add a reference to the built assembly, Intellisense works fine. When press the 'dot' key, the intellisense pops up, at all levels of the heirarchy. But then, a few minutes later, for apparently no reason at all, Intellisense on this item stops working properly (it is fine everywhere else). Then, I'll only be able to see methods at the main class level. None of the nested classes appear, so I'm not able to access their methods via Intellisense, although they are still there, since if I type them out unaided, the code compiles. I've tried all the usual stuff - this problem isn't triggered by build warnings or errors (as often happens). It's as though it's happening at random.
Historically, the referenced assembly has been a project referenced from within the same solution, an assembly referenced by picking up the compiled DLL, and an assembly registered in the GAC. In all cases, the Intellisense magically disappears at random.
The only solution I've found, is that if the reference to the assembly is removed, and then added again, I buy myself about another 2 minutes of full Intellisense before it goes again! Not an ideal situation, since the classes in the assembly are very complex, and have large argument lists. Coding them unaided is a nightmare
Any help would be greatly appreciated
Thanks
Guy.