Categories

Managed Code

Unmanaged Code

Managed by CLR

Not managed by any entity

Garbage collection is used to manage memory

Runtime environment takes care of the management

The .NET framework is necessary for the execution

Not dependant on the .NET framework to run

Object

Class

An instance of a class

The template for creating an object

A class becomes an object after instantiation

The basic scaffolding of an object

Used to access properties from a class

The description of methods and properties

system.stringbuilder

system.string

Mutable

Immutable

Supports using append

Cannot use the append keyword

Function

Stored Procedure

Can only return one value

Can return any number of values

No support for exception handling using try-catch blocks

Supports the usage of try-catch blocks for exception handling

The argument consists of only one input parameter

Both input and output parameters are present

A function can be called from a stored procedure

The stored procedure cannot be called from a function

Function

Stored Procedure

Can only return one value

Can return any number of values

No support for exception handling using try-catch blocks

Supports the usage of try-catch blocks for exception handling

The argument consists of only one input parameter

Both input and output parameters are present

A function can be called from a stored procedure

The stored procedure cannot be called from a function

User Control

Custom Control

Static Layout

Dynamic Layout

No support for the toolbox

Supports the usage of the toolbox

Tightly coupled control access

Loosely coupled control access

Branches from UserControl

Branches from the control group