PostC# Tutorials

Posts 1–11 of 11 · Page 1 of 1
C# Tutorials
My friends have been telling me for a long time that I should teach them C#.. Sooo, I have decided to write tutorials on everything.

I will be uploading more chapters in the future. I plan on releasing 200 or more chapters. Everything from the start is completely noob-friendly, even giving the website on here to download C#.

Please read everything in Chapter 1 before commenting/asking questions.

Added Bonus: Some chapters (such as Chapter 2), contain a Quiz.exe. Things you have learned within the chapter will be used within the quiz. It will take a long time to finish 200+ chapters, but I plan on covering everything from Basic Variables.. to DLLImports (outside APIs).. possibly even making a game private server (WoW, or Vindi.. something easy?).

Hope everyone that downloads is happy with my work. Be Patient for future chapters! If I missed something/didn't explain something correctly/used wrong grammar, tell me!



Virus Scans
Chapter1.rar VirusTotal Virscan
Chapter2.rar VirusTotal Virscan
Chapter3.rar VirusTotal Virscan




Chapter 1.rar2 KB · 103 downloads Scanning…
Chapter 2.rar7 KB · 69 downloads Scanning…
Chapter 3.rar3 KB · 59 downloads Scanning…
@Neko_Kid: Looks good. Downloaded and quickly skimmed through them. Good effort.
Just going over it briefly:

I rewrote you're section about comments here; later you should explain how one can structure their comments so that parsers can automatically go through their code and generate documentations.
Some programs can become extremely complex – such that even the primary programmers may even forget the purpose of their code. Thus, programmers will typically need to place reminders or comments within their code that have no other purpose other than to remind the programmer of a particular significance within their code. It is very important to note, however, that Comments are completely ignored by the compiler; they are not treated as executable code. Comments also serve other purposes as well, they can be structured in such a way that documentations regarding the application’s code can be automatically generated. I will go into this a little later.
Also, be careful with your statement in the Variables section:
You can also make a variable equal to another.

string theWord = "Something...";
string sameThing = theWord;
Technically speaking, in .Net there are reference types and value types; string is a reference type. What you're doing here is not creating two string objects, but one with two references to it. sameThing and theWord reference the same object. 99% of the time this can be ignored but it can cause some pretty annoying bugs as well. This differs from value-types in C# (virtually all built-in types but String and Object.) such as int or byte. All other types are reference types.


Also, you're using <Variable> to describe the variable's data-type. They are two different things. A Variable is composed of its name and its Data-Type.

<Variable>[] <Name> = new <Variable>[<Amount>] { <Values> };

It should be

<Elements' Data Type>[] <VariableName> = new <Elements' Data-Type>[] { <Values> };

You should note that the initializer is not required right off the bat as well.


Also, another very critical mistake;
We could also make them equal by doing...

Family = People;
As I said, everything is a reference. Now, if you go back and alter an element of the array referenced via Family, you will have also altered an element in the object referenced via People and vise-versa (as People and Family both reference the same object.)

On your quiz I can't pass "create a bool array with four values" using any of these methods:
Code:
            bool[] bArray = new bool[] { true, false, true, false };
            bool[] b = new bool[4];
If I made any mistakes its because I'm mixing up my Java with my C# xd.
Nice @radnomguywfq3. At the bool array thing, you are not passing the number of elements in the constructor of the bool. Though your code should work, he is considering the answer just as he described it in the document :/ This would work:
bool[] x = new bool[4] { true, false, false, true };

Neko_Kid, you should fix how your quiz retrieves an answer. You should simply split the answer based on a few delimiters instead of just giving it a statement / part of a statement. I mean if I write "int i= 10;", it says Incorrect when it is right. Spacing should be ignored as it can confuse a beginner even if he is doing the right thing.
Quote Originally Posted by Hassan View Post
Nice @radnomguywfq3. At the bool array thing, you are not passing the number of elements in the constructor of the bool. Though your code should work, he is considering the answer just as he described it in the document :/ This would work:
bool[] x = new bool[4] { true, false, false, true };

Neko_Kid, you should fix how your quiz retrieves an answer. You should simply split the answer based on a few delimiters instead of just giving it a statement / part of a statement. I mean if I write "int i= 10;", it says Incorrect when it is right. Spacing should be ignored as it can confuse a beginner even if he is doing the right thing.
Thanks.
What might even be better, less error-prone and a lot easier is to use .Net's reflection to compile and then analyze the code.
Yeah, I agree. Though it's quite simple, don't know if he is able to do that.
So if i read everything, can i able to make my own aimbot ? im just a beginner in c# !
Quote Originally Posted by djvu61 View Post
So if i read everything, can i able to make my own aimbot ? im just a beginner in c# !
No, it takes time. And without leeching you are not going to make a aimbot with just basics.
thanks for the tutorials
appreciated
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?