-2

I'm an A2 level computing student and I'm creating a program for my project which (using c#) takes data from an MDF and displays it in windows form textboxes. Because I'm a totally inexperienced programmer so used an online guide (http://www.homeandlearn.co.uk/csharp/csharp_s12p7.html) but I now need to explain the code in annotation so was wondering what the following section of code mean:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;


namespace WindowsFormsApplication1
{
public partial class

I only need a quick explanation for an annotation so any information would be helpful. Thankyou

  • 1
    How did you tag `using-statement` if you don't know what is it? – Soner Gönül Mar 10 '15 at 12:23
  • 3
    Did you skip the entire first portion of your tutorial? http://www.homeandlearn.co.uk/csharp/csharp_s1p3.html – cbr Mar 10 '15 at 12:25
  • `10x` more time wasted compared to typing `what is ... c#` (where `...` is what you don't understand) in the google. – Sinatr Mar 10 '15 at 12:30

1 Answers1

2

In simple terms:

using = Include this namespace in this file

namespace = A way of identifying / grouping classes into logical groups

public = This can be seen by everything in this assembly and any assembly that references it.

partial = The class definition can be split over multiple files.

class = Well, a class. A class definition starts with the keyword class followed by the class name; and the class body, enclosed by a pair of curly braces.

Earth
  • 3,477
  • 6
  • 37
  • 78
Belogix
  • 8,129
  • 1
  • 27
  • 32