summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLaoujin <woutervs@hotmail.com>2015-02-01 06:01:01 +0100
committerLaoujin <woutervs@hotmail.com>2015-02-01 06:01:01 +0100
commit8911f368de43ab33d0d5ac251551de1ee765727c (patch)
treed2da69630594b4177600dc46d130aac881d606c6
parentf5d0208178d9903911249dad482cec37f5523627 (diff)
[CSharp/en]extra details for using EntityFramework and namespaces
-rw-r--r--csharp.html.markdown15
1 files changed, 10 insertions, 5 deletions
diff --git a/csharp.html.markdown b/csharp.html.markdown
index 58d5fa11..87a70200 100644
--- a/csharp.html.markdown
+++ b/csharp.html.markdown
@@ -24,19 +24,24 @@ Multi-line comments look like this
/// </summary>
//public void MethodOrClassOrOtherWithParsableHelp() {}
-// Specify namespaces application will be using
+// Specify the namespaces this source code will be using
+// The namespaces below are all part of the standard .NET Framework Class Libary
using System;
using System.Collections.Generic;
-using System.Data.Entity; // Add dll reference with NuGet: Install-Package EntityFramework
using System.Dynamic;
using System.Linq;
-using System.Linq.Expressions;
using System.Net;
using System.Threading.Tasks;
using System.IO;
-// defines scope to organize code into "packages"
-namespace LearningXInYMinutes.CSharp
+// But this is one is not:
+using System.Data.Entity;
+// In order to be able to use it, you need to add a dll reference
+// This can be done with the NuGet package manager: `Install-Package EntityFramework`
+
+// Namespaces define scope to organize code into "packages" or "modules"
+// Using this code from another source file: using Learning.CSharp;
+namespace Learning.CSharp
{
// Each .cs file should at least contain a class with the same name as the file
// you're allowed to do otherwise, but shouldn't for sanity.