• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook pagefor updates, or we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.)

[Help] C#

idk what to put here
Loyal Member
Joined
Oct 19, 2007
Messages
491
Reaction score
159
I want to start learning C#, but i have NO idea where to start. Can anyone give me some references or tips. Anything that can help me start :p.
 
Junior Spellweaver
Joined
Jun 10, 2009
Messages
192
Reaction score
15
Ok, Ask Zak He's best C# Coder I know! and I refure him to you! :)
 
Banned
Banned
Joined
Aug 25, 2009
Messages
431
Reaction score
190
hi, my Coding apparently is "mindblowing" /blush Allthough I dont think its good xD It has littleset protection ever, Someone could easily get a worm into it. Anyway, I could help you, Unless your Joe Burke, coz then im doing lessons with you anyway.
 
idk what to put here
Loyal Member
Joined
Oct 19, 2007
Messages
491
Reaction score
159
I started of with a simple code that imputs your name into a text file xD.

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;


namespace GiveMeYourName
{

    class Program
    {



        static void Main(string[] args)
        {

            string text;

            StreamWriter sw;
            
            

            Console.Title = ("I NEED YOUR DAMN NAME");
            Console.BackgroundColor = ConsoleColor.Gray;
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.Black;
            Console.WriteLine("Hello Anonymous, I am going to need your name to go further!");
            Console.WriteLine("------------------------------------------------------------");
            Console.WriteLine("Press enter to continue...");
            Console.ReadKey();
            Console.WriteLine("Your Name:");
            text = Console.ReadLine();

            try
            {
                if (!File.Exists("log.txt"))
                {
                    sw = new StreamWriter("log.txt");
                }
                else
                {
                    sw = File.AppendText("log.txt");
                }
                sw.WriteLine(text.ToString());
                sw.WriteLine();

                Console.WriteLine(" OI, I HAVE YOUR NAME, NOW GTFO ");
                
                Console.ReadLine();
                sw.Close();

            }


            catch{}

           
    }
}
           













            }
i think this is pretty good. Considering i only did a tiny bit of research and trial and error!
 
Initiate Mage
Joined
Jan 25, 2011
Messages
2
Reaction score
0
Learn C#.
Read some tutorials, follow them.
I would recommend you to get familiar with Microsoft C#.
 
idk what to put here
Loyal Member
Joined
Oct 19, 2007
Messages
491
Reaction score
159
Very nicely done if you coded that yourself for one of your first programs. Looks like you had fun with that ;)

I coded this 100% by myself, :D. With a little tiny bit of help from researching.
 
idk what to put here
Loyal Member
Joined
Oct 19, 2007
Messages
491
Reaction score
159
omg your such a k0der arn't you!!!!

You made a console app that makes file or check if it exists! :pPP

So? Lol it's my first console app.. ever.
 
Newbie Spellweaver
Joined
Jul 4, 2010
Messages
66
Reaction score
1
lol C# is my favorite coding method
i learned by trial and error 100%
its a hard thing to master tho... good luck
 
Custom Title Activated
Loyal Member
Joined
Nov 27, 2009
Messages
1,905
Reaction score
948
C#'s syntax is very similar to that of Java's, making c# very easy to pick up.
 
Back
Top