c#

GC (Garbage Collection)

Garbage Collection is the process done by the CLR that searches memory for areas of inactive data and instruction in order to reclaim that space for the general memory pool (the heap). Operating systems may or may not provide this feature.

Related TutorialsXHTML (eXtensible HyperText Markup Language)
Side-by-Side Execution
Private …

Learn more

FCL (Framework Class Library)

The collective name for the thousands of classes that compose the .NET Framework is called FCL. The services provided by the library include runtime core functionality (basic types and collections, file and network I/O, accessing system services, etc.), interaction with databases, consuming and producing XML, and support for building Web-based (Web Form) and desktop-based (Windows Form) client applications, …

Learn more

Finally block

This is a block of program statements that will be executed regardless if an exception is thrown or not. A finally block is typically associated with a try/catch block, although finally could be used if catch block does not present. This is useful for operations that must be performed regardless if an exception was thrown or not (e.g., …

Learn more

Finalize

Finalize is a class-only method that is automatically called when an object is destroyed by the garbage collector. The Finalize method is primarily used to free up unmanaged resources allocated by the object before the object itself is removed from memory. A Finalize method is not needed when only managed resources are used by the object, which are …

Learn more

Exception Handling

Exception Handling is the process of trapping an exception and performing some sort of corrective procedure in response.

Related TutorialsConstructor
Pinned
.NET Languages
Local assembly …

Learn more

Exception

Signal that is generated when an unplanned or unexpected event occurs is called Exception. Exceptions are typically caught by an exception handler and dealt with in an appropriate way. A fatal exception (also named a critical or catastrophic error) is an event that cannot be properly handled to allow the application—or the operating system—to continue running.

Related TutorialsPre-defined types
Unmanaged …

Learn more

Event Handler

Event Handler is a function or method containing program statements that are executed in response to an event.

Related TutorialsOverriding
Managed providers
Windows …

Learn more

Event

Event is a notification by a program or operating system that “something has happened.” An event may be raised in response to the occurrence of a pre-defined action (e.g., a user clicking a button, a program starting up or shutting down, a timer indicating a specific interval of time has passed). An event handler is called in response …

Learn more

Exception Management

Exceptions are an inevitable part of the development process, and applications should handle exceptions gracefully to avoid damaging your application’s credibility with users. You can even log exceptions and use that information to your advantage to help identify problem areas and manage user perception by responding to issues before customers have a chance to contact you to complain.

Related …

Learn more

Destructor

In traditional OOP, a destructor is a class method that is called when an object goes out of scope. In .NET languages, the destructor method is instead called when the object is garbage collected by the CLR—which happens at some indeterminate time after an object goes out of scope. In C#, the destructor is actually a syntactic mapping …

Learn more