Title: Microsoft .Net
1Microsoft .Net
2Common Language Runtime
- Superset of ECMA Common Language Infrastructure
- Defines
- Language-neutral platform
- Intermediate Language
- Deployment file format (assemblies)
- Extensible metadata
- COM/Platform interop
3Common Type System
Interface
Object
String
array
class
MarshalByRefObject
ValueType
class
ContextBoundObject
Enum
struct
Boolean, Byte, Int16, Int32, Int64, Char,
Decimal, Guid, Single, DOuble, DateTime, TimeSpan
class
enum
4Common Type System (contd)
- One class can implement multiple interfaces
interface IShape void Draw() interface
ICowboy void Draw() class CowboyShape
Ishape, ICowboy void IShape.Draw()
void ICowboy.Draw()
5Common Type System (contd)
- Also defines conventions for naming
- Property get/set (property Foo ? get_Foo,
set_Foo) - No exception specifications
- Delegates
6Language Independance
- Common Type System vs. Common Language
Specification - Microsoft supported languages
- C (ECMA)
- Visual Basic .Net
- Managed C
- J
- JScript.Net
- Plus over 40 third-party languages
7Assemblies
- Similar to Java package
- Can be one or multiple files
- Contain
- Manifest
- Modules (code)
- Resources
- Satellite assemblies for localised resources
- Strongly named
- Strong name (publisher token, assembly name,
version vector, culture)
8Common Language Frameworks
- System
- System.Collections, System.Collections.Specialised
- System.Reflection, System.Reflection.Emit
- System.Security (cryptography, permissions)
- System.Text (regular expressions, encodings)
- System.Threading
- System.Configuration
- System.Globalization
- System.Resources
- System.Management
- System.Drawing
- System.Runtime.InteropServices
- System.ServiceProcess
- System.Data
- System.DirectoryServices
9Common Language Frameworks
- System.EnterpriseServices
- System.IO
- System.Messaging
- System.Runtime.Remoting
- System.Runtime.Serialization
- System.Diagnostics
- System.CodeDom
- System.Runtime.CompilerServices
- System.Web
- System.Net
- System.Xml
- System.ComponentModel
- System.Web.UI
- System.Windows.Forms
10More resources
- http//msdn.microsoft.com/netframework/
- http//www.gotdotnet.com
- http//www.liacs.nl/sgroot/cbse/