c#-2.0
how to catch changes in a member variable? (C#)
This seems to be basics of the language, but I do not understa开发者_如何学Gond how is this accomplished in .Net. I have a member variable in a class, say a bool _isCommitted. I want something to happ[详细]
2023-03-28 04:56 分类:问答get Item Index of arrayList knowing its Name
is there a function that take array list item and bring back item index ? for开发者_StackOverflow社区 ex:[详细]
2023-03-28 04:16 分类:问答Rhino Mocks: Stubbing an IEnumerator<T>
I\'m developing a little .net 2.0 project. I get to the point where I need to test some class\'s method which takes an IEnumerator. As a few days ago I learnt to use Rhino Mocks I wrote the following[详细]
2023-03-27 05:25 分类:问答set Enums using reflection
How to setEnums using reflection, my class have enum : public enum LevelEnum { NONE, CRF开发者_运维百科,[详细]
2023-03-27 05:04 分类:问答MVC - Postback on clicking a radio button
I am fairly new to MVC. I have a simple problem. I have 3 radio buttons on my开发者_开发技巧 mvc asp.net page. I would like to call an action in my controller when I check one of the radio buttons on[详细]
2023-03-25 14:29 分类:问答create an object with out new keyword in c#
public class Animal { public void Eat() { Console.Wri开发者_运维技巧teLine(\"Animal eats for living.\");[详细]
2023-03-24 14:42 分类:问答can i use DEBUG_NEW on managed code?
can i use: #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[开发者_如何学运维] = __FILE__;[详细]
2023-03-24 09:43 分类:问答ASP.NET Unable to Enable SSL using FtpWebRequest class without getting errors
I am retrieving a file from our FTP server which is then put into memory and passed to the client via HTTPS. I have everything working flawlessly. However, if I turn on SSL, I get the following error:[详细]
2023-03-23 21:08 分类:问答Example of hooking a window?
I want to hook another program\'s window, so I can get when the cursor enters the window. How开发者_如何学编程 to do that? I know that it\'s with SetWindowsHookEx but I can\'t find an example (even a[详细]
2023-03-23 15:11 分类:问答Replace Assembly.LoadFrom(String, Evidence) call with Assembly.LoadFrom(String) - .NET 4
I have to move some old .NET 2 code to the .NET 4 project. It has the next line: `return Assembly.LoadFrom(filePath, Assembly.GetExecutingAssembly().Evidence);`[详细]
2023-03-23 03:25 分类:问答