| Thread | Last Post | Replies |
|
| custom attributes in .Net 2.0 | 24 May 2007 08:36 GMT | 1 |
I have a custom attribute targing Property: [AttributeUsage(AttributeTargets.Property, AllowMultiple=false, Inherited=true)] public class StatefulPropertyAttribute : Attribute{}
|
| Conversion between collection interface types | 24 May 2007 07:40 GMT | 3 |
I have a class that has a property returning IList. For example, class A { public IList<string> MyList
|
| Understanding Abstract Factory Pattern | 24 May 2007 05:59 GMT | 16 |
I am a fairly seasoned developer and have recently started looking at software design patterns. I am starting with the Abstract Factory Pattern and was wondering if someone could help me understand where I might use this Pattern. I get the general concept but I am having a hard ...
|
| C# ActiveX Control won't load on some machines, does on others | 24 May 2007 05:43 GMT | 7 |
Our team have a web project which includes some C# ActiveX DLLs. On some developers' PCs, the code which calls methods in the ActiveX dll is succesful - no exceptions. On other PCs, the ActiveX control doesn't even seem to get loaded. (On the failing machines, if we try
|
| SMTP message to file | 24 May 2007 04:17 GMT | 3 |
What is the easiest way to save a copy of SMTP email messages to a file? I have an application which sends out SMTP messages with an attachment and I would like to save a copy of these messages, kind of like when you Save As message in Outlook or Outlook Express and when you ...
|
| Storing Credentials in Application | 24 May 2007 04:11 GMT | 13 |
I would like to know the best way to store credentials in a c# application. I am writing some administrative tools and will need to store username and password information for a domain account with elevated privileges. While I am sure this is not a "best practice" I have not ...
|
| How to obfuscate the CSharp code ? | 24 May 2007 02:13 GMT | 6 |
As far as I understood intermediate CSharp IC code can be retrieved resp. re-engineered to a similar source code as the original. Are there any options to obfuscate the code ? Carla
|
| ArgumentOutOfRangeException When I Remove ListView items | 24 May 2007 02:11 GMT | 1 |
I have a ListView with checkboxes. I want to remove items when the checkboxes are unchecked, but to do so yields an ArgumentOutOfRangeException. Is there an easy way to get around this? A simple program that illustrates the exception is below:
|
| Pukes on 12th invoke | 24 May 2007 01:46 GMT | 10 |
The following code runs fine. I let it go several thousand times and then killed it. private void button1_Click(object sender, EventArgs e) {
|
| Identifying an image type. | 24 May 2007 01:23 GMT | 6 |
I have an interesting problem. I have a directory of image files. However, none of the files have an extension. I need to figure out what type if image it is and attach an extension to the file. Is there a way to determine image type in the .net framework?
|
| Windows Service vs. Windows Application | 23 May 2007 22:37 GMT | 1 |
I have the following snippet of code which works both as a standalone application and as when incorporated to a windows service. There seems to be a slight difference between the service and the standalone app however.
|
| Communicating between threads | 23 May 2007 22:15 GMT | 1 |
I m kind of new to multithreading programming and try to implement one solution. The problem I have is, I have one background thread which does time consuming processing. The parent(calling) thread can be windows application or console application or simple object. How can I
|
| Declaring variables in loops | 23 May 2007 21:55 GMT | 11 |
I usually stick to the convention of not declaring variables in my bodies of "loops" (including foreach) ie int x;
|
| WCF: Why is the client's IDisposeable implementation private? | 23 May 2007 21:34 GMT | 17 |
Why is the IDisposeable implementation of WCF clients private? I'm glad that you can still Dispose() by casting or with using ( .. ) { .. } because IDisposable is indeed implemented but what was the design reasoning to make Dispose() private?
|
| NativeMethods versus SafeNativeMethods versus UnsafeNativeMethods? (reflector) | 23 May 2007 20:44 GMT | 1 |
I've been using reflector to look into some of the core MS .NET assemblies. I have noticed this pattern in the naming of classes that wrap p-Invoked Win32 api functions. I like this pattern.
|