Basic question.
-
Being new to C# I have always wondered, how do people know the following: Classes and there methods and what method is doing what? For eg: DataGridTextBoxColum > to achieve custom looks override the Paint method! How do they know to do that? Is there a manual out there that I don't know about? Or another good one: //To invoke the method used when user double click on column to resize! MethodInfo m = t.GetMethod("ColAutoResize", BindingFlags.Instance | BindingFlags.NonPublic); How do you know that? Who tells a person to go and get the information from? I would love to know all that can some one here solve this mystry please??? thakns :)
-
Being new to C# I have always wondered, how do people know the following: Classes and there methods and what method is doing what? For eg: DataGridTextBoxColum > to achieve custom looks override the Paint method! How do they know to do that? Is there a manual out there that I don't know about? Or another good one: //To invoke the method used when user double click on column to resize! MethodInfo m = t.GetMethod("ColAutoResize", BindingFlags.Instance | BindingFlags.NonPublic); How do you know that? Who tells a person to go and get the information from? I would love to know all that can some one here solve this mystry please??? thakns :)
-
Being new to C# I have always wondered, how do people know the following: Classes and there methods and what method is doing what? For eg: DataGridTextBoxColum > to achieve custom looks override the Paint method! How do they know to do that? Is there a manual out there that I don't know about? Or another good one: //To invoke the method used when user double click on column to resize! MethodInfo m = t.GetMethod("ColAutoResize", BindingFlags.Instance | BindingFlags.NonPublic); How do you know that? Who tells a person to go and get the information from? I would love to know all that can some one here solve this mystry please??? thakns :)
There is no manual that explains all this stuff. It's just put together from A LOT of experience and research. A lot of the code you see is dictated by how Windows works, which is documented here[^]. When the Windows API was written, it was done with C++ in mind, not the .NET Framework. So all the code and examples in the Platform SDK will be written in C++. You have to translate the code into whatever language you're using. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
There is no manual that explains all this stuff. It's just put together from A LOT of experience and research. A lot of the code you see is dictated by how Windows works, which is documented here[^]. When the Windows API was written, it was done with C++ in mind, not the .NET Framework. So all the code and examples in the Platform SDK will be written in C++. You have to translate the code into whatever language you're using. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Being new to C# I have always wondered, how do people know the following: Classes and there methods and what method is doing what? For eg: DataGridTextBoxColum > to achieve custom looks override the Paint method! How do they know to do that? Is there a manual out there that I don't know about? Or another good one: //To invoke the method used when user double click on column to resize! MethodInfo m = t.GetMethod("ColAutoResize", BindingFlags.Instance | BindingFlags.NonPublic); How do you know that? Who tells a person to go and get the information from? I would love to know all that can some one here solve this mystry please??? thakns :)
Taurian110 wrote:
How do they know to do that? Is there a manual out there that I don't know about?
My main source of information is reading articles, books[^], magazines (like MSDN Magazine[^], Software Development Magazine[^]), attending/organising user groups (Scottish Developers[^], Agile Scotland[^], eXtreme Wednesdays[^]), listening to DotNetRocks[^], and IT Conversations[^] I hope I've not left anything out. ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
-
Dave Kreskowiak wrote:
So all the code and examples in the Platform SDK will be written in C++
Huh? If you need C# documentation MSDN has everything you need.
I think you mis-understood what I was talking about. The C# documentation DOESN'T cover the Windows internals like the Platform SDK does. It covers stuff like, "to do this, write that". It doesn't cover why it works the way it does. For example, overriding WndProc. You can easily capture any and all window messages headed for your app and react to them, but the C# documentation doesn't go into what a window message is or how windows actually work. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Being new to C# I have always wondered, how do people know the following: Classes and there methods and what method is doing what? For eg: DataGridTextBoxColum > to achieve custom looks override the Paint method! How do they know to do that? Is there a manual out there that I don't know about? Or another good one: //To invoke the method used when user double click on column to resize! MethodInfo m = t.GetMethod("ColAutoResize", BindingFlags.Instance | BindingFlags.NonPublic); How do you know that? Who tells a person to go and get the information from? I would love to know all that can some one here solve this mystry please??? thakns :)
Another good resource are Reflector-like tools. If you don't understand what a special class does than you can just look into the code.