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 dllBuild a Professional Website
My first website was a free installation site. It was very easy to create. It looked like a third class poster child. Can you relate to it? Do you want to compete with the pros? You can.
Web2.0 today to create a professional to install and use the technology's Web site or Web page is relatively simple. Software developers and bloggers are taking advantage of the beginning of this century, was born on a host of free Web site building tool, it said.
A Web 2.0 site is simply a website that lets you interact with others. Some of the most popular Web 2.0 website building platforms are Blogger.com, TypePad.com and WordPress.com. However, since free-hosted sites are generally restricted to a hosting provider, control of the content is often limited. Still, building your own professional looking website is very achievable.
Here are three ways to build quality professional website.
- The most obvious is to pay someone to create a professional looking website.
- You can create a site from scratch using HTML (Hyper Text Markup Language) and CSS (Cascading Style Sheets).
- You can create a quality website yourself using free software
Let us assume that you have no money, no time to implement the first two options.
This brief article focuses on free and easy website building with Word Press. It is free. Download a copy of http://wordpress.org. Not to be confused with wordpress.org wordpress.com. The dot com version is a hosted version and the limits of control over content. There are tutorials available from Word Press to assist with the installation of the software as well as many tutorials on the Internet. There are also video tutorials available on YouTube.
Once installed and will guide the selection process of your WordPress dashboard. Like to add personality and professionalism to your website you can choose different themes. You can add the add-in plug-in utility you to add a Web site. Within a short time, the couples most of the time, if this is the first site, the first expert's website to be created.
Although Word Press is simple to install and manage, if you're not sure, with computer terminology and web site design, it can seem overwhelming. But not so overwhelming as to learn HTML and CSS would be. As already mentioned, there are many free video and text tutorials on the Internet. You are not in one place. You may need to find some users that you need.
There is also the coach's program is available, will educate and guide you through all the processes need to build a professional website in a few hours, rather than a few days or weeks.
Posted in: css tutorial| Tags: Website Installation site class professional build itdo poster prosyou childAsp.net Control: Properties
Property packaged component state is rapid application development (RAD) nature. They allow users to custom design-time environment for components. The construction of the property in Visual Basic to support several versions, but not provided by an object, such as C, Java object-oriented programming language. (In the JavaBeans properties is to support an indirect access method adhere to a naming convention.) Is. NET Framework brings RAD Data Communications to simplify object-oriented programming support as a world-class programming construct object properties.
We'll look at the property construct first. Then we'll look at naming guidelines for properties and the advantages of exposing properties.
The Property Construct
Properties such as areas that are accessible through fieldlike pension but implemented using accessor methods. The following example shows a simple construction that specifies a property name public property in class Person:
public class Person {
// The private field below is not part of the property
// construct but contains data that holds the value of
// the Name property.
private string _name;
public string Name {
get {
return _name;
}
set {
_name = value;
}
}
}
The boldface elements—get, set, and value—are keywords in the C# property syntax. The compiler transforms the code in the get and set blocks into methods that are called property accessors. The get accessor—also called the getter—retrieves the value of the property, while the set accessor—also called the setter—assigns a value to the property. The value identifier denotes the implicit parameter that is passed into the setter.
C# does not have a keyword named property. However, Visual Basic .NET does use the Property keyword as shown in the following example, which shows the keywords in Visual Basic .NET property syntax in boldface:
Private String _name
Public Property Name() As String
Get
Return _name
End Get
Set (ByVal value As String)
_name = value
End Set
End Property
In contrast with C#, value in Visual Basic .NET is not a keyword in property syntax.
Although the get and set accessors are equivalent to methods, they cannot be invoked as methods in C# and Visual Basic .NET but are indirectly accessed by code that assigns or retrieves a property.
The syntax for setting a property is the same as that for setting a field. When you are setting a property, the assigned value must match the declared type of the property:
Person aPerson = new Person();
aPerson.Name = "John"; //Type of Name is string.
The property construct allows you to abstract the storage and implementation of a property from the clients of your component. In our example, a private field holds the data for the Name property. While the backing data for a property is often a private field, the data could reside elsewhere—for example, on disk or in a database—or it could be generated dynamically, as in a property that returns the system time.
Attribute can be defined get and set accessors, or just a single access device. Only get access to an attribute is a read-only attribute, and only set accessor attribute is a write-only property. Although the CLR allows write-only attribute. NET Framework Design Guidelines to stop them. If your component requires a write-only property, you should implement a method, rather than the property provide the same functionality.
A property can have any access level allowed by the runtime, including public, private, protected, or internal. In C# and Visual Basic .NET, the access level of a property applies to both accessors; it is not possible to have a different access level for each accessor.
Although the get and set accessors can not directly access methods, they are semantically equivalent method. In addition, they can perform any program logic, is covered, and throw an exception. In the next two sections, we will tell you how to override the property and property accessor of value for examination.
The Spectrum of Choices for J2ee Training
?
And even for robust J2EE Web-based application platform capable of remaining at the forefront is to fill the ranks of the development team in the world have to press a key. If the team is already in practice, the architect for the project is Java, J2EE only trained in how one gains one or scaffold in the field, what?
To obtain solid J2EE training that is in many ways. Web component developer, a developer of business components, mobile application developers, but the day is a lot of money and of course full J2EE training program, in hopes that those of you that are world class, The Enterprise Architect. This online and in-house and off-site class choices or to make arrangements. Finally, you get a good qualified certified developers to hang in your cube.
During this time, the online college education attracts hundreds of thousands of students each academic year, there should be no surprise that the online podcasts, webinars, and complete a longer video courses on CD enrich the diversity of the J2EE Training available. And these are affordable, starting at U.S. $ 150 to $ 170 or approximately, depending on where the exchange rates this week. These are slapdash affairs. A typical J2EE includes education curriculum offering in the area of review for coding Java Server Pages, servlets, and learning about multi-threading, Enterprise Java sites, databases and Web services. Schools, training centers and Fortune 500 companies with strong in-house IT skills regularly purchase multi-user licenses.
Take time to select the J2EE Training mode, which is right for you. And do not fret if the price of tracks stretching upwards of 6 months to a year or even more. When the people of HyTech Professionals (www.hytechpro.com), the architect, middleware, or entire systems all day long, you will say that Java is a difficult beast to tame. But, finally, that the use of robust, multi-platform and networked system into a production environment, retail or in a bank gives immense satisfaction to have spent in the right kind of J2EE training.
?
?
Posted in: java training| Tags: Online Training Application education enterprise world class architect team developerBase 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 structurein .NET, some strings will have the same hash code
Console.WriteLine("0.89265452879139".GetHashCode()); Console.WriteLine("0.280527401380486".GetHashCode());
Do you know what will happen? Have a try:
2060653827
2060653827
these 2 string share the same hash code!
Posted in: C# and .NET| Tags: NET C# Hash Hashcode string GetHashCode Code color class span pre styleHow to: Get Started with a Simple Client (Code) (Velocity)
When you programmatically configure your cache client, the configuration settings are passed to the DataCacheFactory class constructor.
Note
For performance reasons, we recommend that you minimize the number of DataCacheFactory objects created in a cache-enabled application. Store the DataCacheFactory object in a variable available to all parts of the application that use cache clients.
The cache client type is defined by the routingClient parameter in the DataCacheFactory class constructor. For a simple client, the routingClient parameter must be false. For more information about the application configuration settings, see Application Configuration Settings (Velocity).
Note
These procedures assume that you have already prepared your development environment and set references to the "Velocity" assemblies, and so on. For more information, see How to: Prepare the Development Environment (Velocity)
To configure a simple client programmatically
Create an array of DataCacheServerEndpoint objects to specify the cache hosts for the client.
Configure your cache hosts by assigning the cache host array from the previous step to the servers parameter of the DataCacheFactory constructor.
Select a simple client type by assigning a false value to the routingClient parameter of the DataCacheFactory constructor.
Configure local cache by assigning a true or false value to the localCache parameter of the DataCacheFactory constructor. Use the true value to enable local cache or a false value to disable local cache.
Use the GetCache method to obtain an instance of the routing client.
Posted in: C# and .NET| Tags: Velocity CTP CTP 3 .NET 4.0 Cache Microsoft Configuration Code client class datacachefactory constructor configure simple