Dot Net Development: Accomplish Large Functions through Class Library
. NET framework includes a set of standard class libraries. The library set up a namespace level. Work in the API, and most of the system or part of the Microsoft namespace. The implementation of these libraries, such as file reading and writing, graphic rendering, database interaction, and XML document manipulation, yes, the general functions of a large number of. The. NET class library is available to all. NET language. . NET Framework Class Library is the alienation is divided into two parts: the base class library and framework libraries.
Base Class Library (BCL): The Base Class Library (BCL) consists of a small subset of the entire class library and is the core set of classes that serve as the essential API of the Common Language Runtime.[10] The classes in mscorlib.dll and a few of the classes in System.dll and System.core.dll are considered to be a division of the BCL. The BCL classes are accessible in both .NET Framework as well as its substitute implementations counting .NET Compact Framework, Microsoft Silverlight and Mono.
Framework Class Library (FCL): The Framework Class Library (FCL) is a superset of the BCL classes and indicates the whole class library that ships with .NET Framework. It includes an extended set of libraries, including WinForms, ADO.NET, ASP.NET, Language Integrated Query, Windows Presentation Foundation, Windows Communication Foundation among others. The FCL is much superior in scope than standard libraries for languages likeC++, and comparable in capacity to the standard libraries of Java.
The Base Class Library (BCL) is a regular library available to all languages with the .NET Framework. .NET comprise the BCL in order to summarize a large number of ordinary functions, such as file reading and writing, graphic rendering, database interaction, and XML document manipulation, making easy the programmer's job. It is much better in scope than standard libraries for the majority other languages, together with C++, and would be similar in scope to the standard libraries of Java. The BCL is sometimes wrongly referred to as the Framework Class Library (FCL), which is a superset as well as the Microsoft.* namespaces.
BCL is. NET Framework are modernized versions of
?Namespaces
The namespace that some people may or may not be formally considered by Microsoft as part of first home buyers, but they are, as with Microsoft's. NET Framework included in the implementation of part of the pool equipment.
Standardized namespaces
These are the namespaces that are uniform in the ECMA 335 and ISO / IEC 23271:2006 standards.
System
This namespace is composed of a central requirement for programming. This string, DateTime, Boolean, etc., and the base class attributes, exceptions, math functions, including basic types such as array-like environment and the grace of the console.
System Collections
It provides many new common containers or collections used in programming, such as lists, queues, stacks, hashtables, and dictionaries. It consists of close to generic.
System Diagnostics
It offers the ability to diagnose your application. It consists of event logging, counters presentation, identification, and interaction with system processes.
The above article is important for dot net development.
Posted in: asp.net| Tags: NET BCL language system framework class library base set dllBase Class Library in .NET 3.5
System.TimeZoneInfo: http://blogs.msdn.com/bclteam/archive/2007/06/07/exploring-windows-time-zones-with-system-timezoneinfo-josh-free.aspx. Time zone conversion. Green bits.
System.DateTimeOffset: http://blogs.msdn.com/bclteam/archive/2007/06/14/datetimeoffset-a-new-datetime-structure-in-net-3-5-justin-van-patten.aspx. Includes Time Zone. Red bits.
System.Collections.Generic.HashSet: http://blogs.msdn.com/bclteam/archive/2006/11/09/introducing-hashset-t-kim-hamilton.aspx
Hashset – Red. Every item exists one time, unordered, is a hash. You can do union, intersection. Can define custom equals (e.g., case insensitive comparison).
NP – http://blogs.msdn.com/bclteam/archive/2006/12/07/introducing-pipes-justin-van-patten.aspx . green. Managed wrapper on O/S.
EventSchema: used to log event that a TraceSource is producing. http://blogs.msdn.com/bclteam/archive/2007/03/09/a-new-tracelistener-in-orcas-eventschematracelistener-inbar-gazit.aspx
Encrypt – April CLR inside out. MSDN article.
ETW events & Log – Event Tracing for Windows – Vista.
http://www.bluebytesoftware.com/blog/PermaLink,guid,c4ea3d6d-190a-48f8-a677-44a438d8386b.aspx
Posted in: C# and .NET| Tags: NET BCL time system hashset zone timezoneinfo class library conversion baseWhat is new in Base Class Libraries, in .NET 4.0
The following sections describe new features in collections and data structures, exception handling, I/O, reflection, threading, and Windows registry.
Collections and Data Structures
Enhancements in this area include the new System.Numerics..::.BigInteger structure, the System.Collections.Generic..::.SortedSet<(Of <(T>)>) generic class, and tuples.
BigInteger
The new System.Numerics..::.BigInteger structure is an arbitrary-precision integer data type that supports all the standard integer operations, including bit manipulation. It can be used from any .NET Framework language. In addition, some of the new .NET Framework languages (such as F# and IronPython) have built-in support for this structure.
SortedSet Generic Class
The new System.Collections.Generic..::.SortedSet<(Of <(T>)>) class provides a self-balancing tree that maintains data in sorted order after insertions, deletions, and searches. This class implements the new System.Collections.Generic..::.ISet<(Of <(T>)>) interface.
The System.Collections.Generic..::.HashSet<(Of <(T>)>) class also implements the ISet<(Of <(T>)>) interface.
Tuples
A tuple is a simple generic data structure that holds an ordered set of items of heterogeneous types. Tuples are supported natively in languages such as F# and IronPython, but are also easy to use from any .NET Framework language such as C# and Visual Basic. The ..NET Framework 4 Beta 1 adds eight new generic tuple classes, and also a Tuple class that contains static factory methods for creating tuples.
Exceptions Handling
The .NET Framework 4 Beta 1 class library contains the new System.Runtime.ExceptionServices namespace, and adds the ability to handle corrupted state exceptions.
Corrupted State Exceptions
The CLR no longer delivers corrupted state exceptions that occur in the operating system to be handled by managed code, unless you apply the HandleProcessCorruptedStateExceptionsAttribute attribute to the method that handles the corrupted state exception.
Alternatively, you can add the following setting to an application's configuration file:
legacyCorruptedStateExceptionsPolicy=true
I/O
The key new features in I/O are efficient file enumerations, memory-mapped files, and improvements in isolated storage and compression.
File System Enumeration Improvements
New enumeration methods in the Directory and DirectoryInfo classes return IEnumerable<(Of <(T>)>) collections instead of arrays. These methods are more efficient than the array-based methods, because they do not have to allocate a (potentially large) array and you can access the first results immediately instead of waiting for the complete enumeration to occur.
There are also new methods in the static File class that read and write lines from files by using IEnumerable<(Of <(T>)>) collections. These methods are useful in LINQ scenarios where you may want to quickly and efficiently query the contents of a text file and write out the results to a log file without allocating any arrays.
Memory-Mapped Files
The new System.IO.MemoryMappedFiles namespace provides memory mapping functionality, which is available in Windows. You can use memory-mapped files to edit very large files and to create shared memory for inter-process communication. The new System.IO..::.UnmanagedMemoryAccessor class enables random access to unmanaged memory, similar to how System.IO..::.UnmanagedMemoryStream enables sequential access to unmanaged memory.
Isolated Storage Improvements
Partial-trust applications, such as Windows Presentation Framework (WPF) browser applications (XBAPs) and ClickOnce partial-trust applications, now have the same capabilities in the .NET Framework as they do in Silverlight. The default quota size is doubled, and applications can prompt the user to approve or reject a request to increase the quota. The System.IO.IsolatedStorage..::.IsolatedStorageFile class contains new members to manage the quota and to make working with files and directories easier.
Compression Improvements
The compression algorithms for the System.IO.Compression..::.DeflateStream and System.IO.Compression..::.GZipStream classes have improved so that data that is already compressed is no longer inflated. This results in much better compression ratios. Also, the 4-gigabyte size restriction for compressing streams has been removed.
Reflection
The .NET Framework 4 Beta 1 provides the capability to monitor the performance of your application domains.
Application Domain Resource Monitoring
Until now, there has been no way to determine whether a particular application domain is affecting other application domains, because the operating system APIs and tools, such as the Windows Task Manager, were precise only to the process level. Starting with the .NET Framework 4 Beta 1, you can get processor usage and memory usage estimates per application domain.
Application domain resource monitoring is available through the managed AppDomain class, native hosting APIs, and event tracing for Windows (ETW). When this feature has been enabled, it collects statistics on all application domains in the process for the life of the process.
For more information, see the <appDomainResourceMonitoring> Element, and the following properties in the AppDomain class:
*
MonitoringIsEnabled
*
MonitoringSurvivedMemorySize
*
MonitoringSurvivedProcessMemorySize
*
MonitoringTotalAllocatedMemorySize
*
MonitoringTotalProcessorTime
64-bit View and Other Registry Improvements
Windows registry improvements include the following:
*
Ability to specify a 32-bit or 64-bit view of the registry with the Microsoft.Win32..::.RegistryView enumeration when you open base keys.
*
the new Microsoft.Win32..::.RegistryOptions enumeration, which lets you specify a volatile registry key that does not persist after the computer restarts.
Threading
General threading improvements include the following:
*
The new Monitor..::.Enter(Object, Boolean%) method overload takes a Boolean reference and atomically sets it to true only if the monitor is successfully entered.
*
You can use the Thread..::.Yield method to have the calling thread yield execution to another thread that is ready to run on the current processor.
The following sections describe new threading features.
Unified Model for Cancellation
The .NET Framework 4 Beta 1 provides a new unified model for cancellation of asynchronous operations. The new System.Threading..::.CancellationTokenSource class is used to create a CancellationToken that may be passed to any number of operations on multiple threads. By calling Cancel()()() on the token source object, the IsCancellationRequested property on the token is set to true and the token’s wait handle is signaled, at which time any registered actions with the token are invoked. Any object that has a reference to that token can monitor the value of that property and respond as appropriate.
Thread-Safe Collection Classes
The new System.Collections.Concurrent namespace introduces several new thread-safe collection classes that provide lock-free access to items whenever useful, and fine-grained locking when locks are appropriate. The use of these classes in multi-threaded scenarios should improve performance over collection types such as ArrayList, and List<(Of <(T>)>).
Synchronization Primitives
New synchronization primitives in the System.Threading namespace enable fine-grained concurrency and faster performance by avoiding expensive locking mechanisms. The Barrier class enables multiple threads to work on an algorithm cooperatively by providing a point at which each task can signal its arrival and then block until the other participants in the barrier have arrived. The CountdownEvent class simplifies fork and join scenarios by providing an easy rendezvous mechanism. The ManualResetEventSlim class is a lock-free synchronization primitive similar to the ManualResetEvent class. ManualResetEventSlim is lighter weight but can only be used for intra-process communication. The SemaphoreSlim class is a lightweight synchronization primitive that limits the number of threads that can access a resource or a pool of resources at the same time; it can be used only for intra-process communication. The SpinLock class is a mutual exclusion lock primitive that causes the thread that is trying to acquire the lock to wait in a loop, or spin, until the lock becomes available. The SpinWait class is a small, lightweight type that will spin for a time and eventually put the thread into a wait state if the spin count is exceeded.
Posted in: C# and .NET| Tags: NET .NET 4.0 New BCL system framework class base biginteger numerics integer collections structure