Check Page Rank of your Web site pages instantly:

What Is The Defination Of Array References Variable With Example

An array variable can be referenced by another array variable (referringvariable). While referring, the
referring array variable refers to the values of the referenced array variable.

Example 2 demonstrates the use of array references.

Example 2:

using System;
class StudentReferences

{
  
    public static void Main()

    {

       string[] classOne = { "Allan", "Chris", "Monica" };
       string[] classTwo = { "Katie", "Niel", "Mark" };
       Console.WriteLine("Students of Class I:\tStudents of Class II");
      
       for (int i = 0; i < 3; i++)
      
       {
           Console.WriteLine(classOne[i] + "\t\t\t" +  classTwo[i]);
   
       }
       
       classTwo = classOne;
       Console.WriteLine("\nStudents of Class II after referencing Class I:");
       for (int i = 0; i < 3; i++)
       {
           
          Console.WriteLine(classTwo[i] + " ");
     
       }
       Console.WriteLine();
       classTwo[2] = "Mike";
       Console.WriteLine("Students of Class I after changing the third student in Class II:");
       for (int i = 0; i < 3; i++)    
       {
    
           Console.WriteLine(classOne[i] + " ");
       }
     }
}
 

What is Rectangular Array With Example Code

A rectangular array is a two-dimensional array where each row has an equal number of columns.

 Syntax:

       type [,]<variableName>;
       variableName = new type[value1 , value2];
 
 where,
     
      type: Specifies the data type of the arrays element.
     
      [,]: Specifies that the array is a two-dimensional array.
   
      variableName: Specifies the name of the two-dimensional array.

      new: Is the operator used to instantiate the arrays.

      value1: Specifies the number of rows in the two-dimensional array.

      value2: Specifies the number of columns in the two-dimensional array.

 Example 3:

 using System;
 class StudentScore
 {

          void StudentDetails()
         
          {
           
               Console.Write("Enter the number of Students: ");
               int noOfStds = Convert.ToInt32(Console.ReadLine());
               Console.Write("Enter the number of Exams: ");
               int exams = Convert.ToInt32(Console.ReadLine());
               string[] stdName = new string[noOfStds];
               string[,] details = new string[noOfStds, exams];
               for (int i = 0; i < noOfStds; i++)
              
               {
                    Console.WriteLine();
                    Console.Write("Enter the Student Name: ");
                    stdName[i] = Convert.ToString(Console.ReadLine());
                    for (int y = 0; y < exams; y++)
                    {

                         Console.Write("Enter Score in Exams " + (y + 1) + ": ");
                         details[i, y] = Convert.ToString(Console.ReadLine());

                    }
               }             
              
               Console.WriteLine();
               Console.WriteLine("Student Exam Details");
               Console.WriteLine("--------------------");
               Console.WriteLine();
               Console.WriteLine("Student\t\tMarks");
               Console.WriteLine("-----\t\t------");                  
               for (int i = 0; i < stdName.Length; i++)
               {
                    Console.WriteLine(stdName[i]);
                    for (int j = 0; j< exams; j++)
                    {
                         Console.WriteLine("\t\t" + details[i, j]);
                    
                    }
                    Console.WriteLine();
 
               }
            }
            static void Main()
            {

                StudentsScore objStudentsScore = new StudentsScore();
                objStudentsScore.StudentDetails();

            }
 }

Jagged Array Description With Code Example

 A jagged array can be defined as an arrays. The length of individual arrays of a jagged array need not be the same. Jagged arrays can be used to create tables having rows of different lengths.

A jagged array is declared using square brackets([])that indicate a single dimension.

 Example 4:

 using System;
 class Sports
 {
    
         static void Main(string[] args)
         {

                string[] atheleteNames = new string[] { "Alton White","Mary Cruz","Susan Dias" };
                string[][] events = new string[3][];
                events[0] = new string[] { "100 Mts Sprint", "200 Mts Sprint", "High Jump", "Relay" };
                events[1] = new string[] { "Tripple Jump", "Hurdles", "Long Jump" };
                events[2] = new string[] { "200 Mts Sprint", "High Jump" };
                Console.WriteLine("Participants\tEvents");
                for (int i = 0; i < events.GetLength(0); i++)
                {

                     Console.Write("{0} \t",atheleteNames[i]);
                     for (int j = 0; j < events[i].GetLength(0); j++)
                     {

                          Console.Write("[{0}] ",events[i][j]);
                       
                     }
                     Console.WriteLine();
                }

          }
 }

The Example Of Dynamic And Fixed Arrays

Arrays can be either fixed length array or dynamic arrays. In a fixed length array, the number of element is defined at the time of declaration. For example, an array declared for storing days of the week will have exactly seven element. Here the number of elements is known and hence can be define at the time of declaration. Therefore, a fixed length array can be used. On the other hand , in a dynamic array, the size of the array is not fixed at  the time of the array declaration and can dynamically increase at runtime or when ever required , for example , an array declared to store the mail addressed of all users who access a particular web side can not have a predefined length. In such a case the length of the array cannot be specified at the time od declaration . Here a dynamic array has to be used. A dynamic array can add more element to the array as and when required . Dynamic array are created using built in class of the .NET Framework.

Example:

Using System;
Class myclass
{
Static void Main (string [] a)
{
    String [] Days = new string [7];
    Days [0] = “sun”;
    Days [1] = “mon”;
    Days [2] = “tue”;
    Days [3] = “wed”;
    Days [4] = “thr”;
    Days [5] = “fri”;
    Days [6] = “sat”;
For (int I =< days.Leangth; i++)
{
Console.writeLine(Days[i]);
}
}
}


A fixed length array variable , days,of data type string, is declared to store the seven days of week. The days from Sunday to Saturday are stored in the index position 0to6 of the array and are displayed on the console using the Console.writeLine() method.

Introduction Of C# Book

C# is an elegant and type-safe object-oriented language that enables developers to build a variety of secure and robust applications that run on the .NET Framework. You can use C# to create traditional Windows client applications, XML Web services, distributed components, client-server applications, database applications, and much, much more. Visual C# provides an advanced code editor, convenient user interface designers, integrated debugger, and many other tools to make it easier to develop applications based on version 4.0 of the C# language and version 4.0 of the .NET Framework.
Note Note

The Visual C# documentation assumes that you have an understanding of basic programming concepts. If you are a complete beginner, you might want to explore Visual C# Express, which is available on the Web. You can also take advantage of books and Web resources about C# to learn practical programming skills.
C# Language

C# syntax is highly expressive, yet it is also simple and easy to learn. The curly-brace syntax of C# will be instantly recognizable to anyone familiar with C, C++ or Java. Developers who know any of these languages are typically able to begin to work productively in C# within a very short time. C# syntax simplifies many of the complexities of C++ and provides powerful features such as nullable value types, enumerations, delegates, lambda expressions and direct memory access, which are not found in Java. C# supports generic methods and types, which provide increased type safety and performance, and iterators, which enable implementers of collection classes to define custom iteration behaviors that are simple to use by client code. Language-Integrated Query (LINQ) expressions make the strongly-typed query a first-class language construct.

As an object-oriented language, C# supports the concepts of encapsulation, inheritance, and polymorphism. All variables and methods, including the Main method, the application's entry point, are encapsulated within class definitions. A class may inherit directly from one parent class, but it may implement any number of interfaces. Methods that override virtual methods in a parent class require the override keyword as a way to avoid accidental redefinition. In C#, a struct is like a lightweight class; it is a stack-allocated type that can implement interfaces but does not support inheritance.

In addition to these basic object-oriented principles, C# makes it easy to develop software components through several innovative language constructs, including the following:

    Encapsulated method signatures called delegates, which enable type-safe event notifications.

    Properties, which serve as accessors for private member variables.

    Attributes, which provide declarative metadata about types at run time.

    Inline XML documentation comments.

    Language-Integrated Query (LINQ) which provides built-in query capabilities across a variety of data sources.

If you have to interact with other Windows software such as COM objects or native Win32 DLLs, you can do this in C# through a process called "Interop." Interop enables C# programs to do almost anything that a native C++ application can do. C# even supports pointers and the concept of "unsafe" code for those cases in which direct memory access is absolutely critical.

The C# build process is simple compared to C and C++ and more flexible than in Java. There are no separate header files, and no requirement that methods and types be declared in a particular order. A C# source file may define any number of classes, structs, interfaces, and events.

The following are additional C# resources:

    For a good general introduction to the language, see Chapter 1 of the C# Language Specification.

    For detailed information about specific aspects of the C# language, see the C# Reference.

    For more information about LINQ, see LINQ (Language-Integrated Query).

    To find the latest articles and resources from the Visual C# team, see the Visual C# Developer Center.

How To Do DataBase Connectiviy In C#

Hi, This is an easy thing which i have done, i establish connection between SQL Server and C#.net there is a table in my database named login. My code take name and password from textbox and and password field and then check with the databse if name and passwword is correct then redirenc to a new page.
Here is the sample code:
      string connectionString = “Data Source=(local);Initial Catalog=ashraftest;user id=sa;password=faisal”;
      string mySelectQuery = “SELECT * from login;”;
      SqlConnection myConnection = new SqlConnection(connectionString);
      SqlCommand myCommand = new SqlCommand(mySelectQuery,myConnection);
      myConnection.Open();
      SqlDataReader myReader;
      myReader = myCommand.ExecuteReader();
      string s1= TextBox1.Text;
      string s2= Password1.Value;
      while (myReader.Read())
      {
      if((s1.Equals(myReader.GetString(0))) &&
            (s2.Equals(myReader.GetString(1))))
      Response.Redirect(“loginpage.aspx?name=”+s1);
      }
      myReader.Close();
      myConnection.Close();

What Is The Defination Of Windows Forms Application(WinForms)

Windows Forms (WinForms) is the name given to the graphical application programming interface (API) included as a part of Microsoft .NET Framework, providing access to native Microsoft Windows interface elements by wrapping the extant Windows API in managed code. While it is seen as a replacement for the earlier and more complex C++ based Microsoft Foundation Class Library, it does not offer a paradigm comparable to Model View Controller. Some after-market and third party libraries have been created to provide this functionality. The most widely used of these is the User Interface Process Application Block, which is released by the Microsoft patterns & practices group as a free download that includes the source code for quick start examples.

History & future Of  WinForms

Just like Abstract Window Toolkit (AWT), the equivalent Java API, Windows Forms was an early and easy way to provide graphical user interface components to the .NET Framework. Windows Forms is built on the extant Windows API and some controls merely wrap underlying Windows components
Windows Forms provides a cross-platform way to design graphical user interfaces. However Windows Forms is mainly a wrapper around the Windows API, and some of the methods allow direct access to Win32 callbacks, which are not available in non-Windows platforms.
With the release of .NET 3.0, Microsoft released a second API for rendering GUIs: Windows Presentation Foundation (WPF), together with a GUI declarative language called XAML. However, even though both Windows Forms and WPF offer comparable functionality, Windows Forms has not necessarily been superseded by WPF, but is simply another tool for Windows desktop application that will continue to exist parallel to WPF.

Difference Between Value Types and Reference Types In C#

Introduction

C# provides a set of different data types. The data types in C# are divided into two categories: Value Types and Reference Types. Although there is a third data type: pointers, I will not discuss it here. Pointers can only be used in unsafe code, and as you can figure out by the name, it is not safe and if you can avoid using unsafe code, do it!
A variable that is a value type, stores the data, while a variable of a reference type stores a reference to the data.
Both Value Types and Reference Types have one interesting thing in common; they both derive from System.Object. This is interesting, because most other object oriented languages does not have this behavior. C# is however not the first language, Smalltalk is another language where all objects are derived from a single base class.

Value Types

The value of value types are stored on the managed stack, and can be used directly. This means that the value is stored, and not a reference to the value. This also means that each value type has its own copy of the data. Reference Types on the other hand has a reference to the data, and several variables can reference the same data.
using System;

class TestValueTypes
{
    public static void Main()
    {
        int a = 5;
        int b; 
        b = a;
        Console.WriteLine("a = " + a + "\nb = " + b);
        a++;
        Console.WriteLine("We have now increased a with 1");
        Console.WriteLine("a = " + a + "\nb = " + b);
    }

}

Output:
a = 5
b = 5
We have now increased a with 1
a = 6
b = 5
To compile this code (if you downloaded it), type:
csc ValueTypes.cs
The above code shows that all value types are working with each own data. The variables "a" and "b" do not reference the same data, ?b? just happen to copy the value of "a". If we draw a picture of this, it would look like this:
Value Types
Memory for variables allocated on the managed stack is automatically freed when they go out of scope.
Value types always have a value. It might be zero (0), but zero is also a value. For all simple value types, the default value is the value produced by a bit pattern of all zeros. So for sbyte, byte, short, ushort, int, uint, long and ulong the default value is 0. For float it is 0.0f, and for bool it is false. Section 4.1.2 in the C# Language Reference lists all the default values for the value types. The "value" of a value type cannot be null. That is, value types always have a value.

Reference Types

In contrast to value types, the value of a reference types is allocated on the heap. Another name for a reference type, that you might be more familiar with, is an object. Reference types stores the reference to the data, unlike value types, that stores the value. To demonstrate the difference between a reference type and a value type, let's look at this example:
using System;
public class Cat
{
    private int age;

    public void SetAge(int years)
    {
        age = years;
    }
    public int GetAge()
    {
       return age;
    }

}
public class RefTest
{
    public static void Main()
    {
       Cat miranda = new Cat();
       miranda.SetAge(6);

       Cat caesar = miranda; //caesar now equals miranda

       Console.WriteLine("Caesar: " + caesar.GetAge());
       Console.WriteLine("Miranda: " + miranda.GetAge());

       miranda.SetAge(10); //change Miranda's age, what happen to Caesar now?

       Console.WriteLine("Caesar: " + caesar.GetAge());
       Console.WriteLine("Miranda: " + miranda.GetAge());
       Console.WriteLine(caesar == miranda);
    }

}
Output:
Caesar: 6
Miranda: 6
Caesar: 10
Miranda: 10
True
To compile this code (if you downloaded it), type:
csc ReferenceType.cs
A class is a reference type, and in the example above I create the class Cat.
As you can see, we do not in any way alter caesar?s age. Despite this, the age is the same as miranda's! This is actually how it is supposed to be, they are "sharing" the same memory. Or, they reference the same data. When we alter the value for one of them, the other will get the same value. The last line verifies that they are the same. We are using the == operator (two equal signs) to check this, and it returns true. We could have also used
Console.WriteLine(Object.ReferenceEquals(caesar, miranda));
to check if they referenced the same memory space.
A picture of this would look like:
Reference Types
For a value type, we do not have this behavior, because in this case the value would have been copied instead of the reference to the value.
Memory for variables that are reference types are not automatically freed when they go out of scope. Instead the Garbage Collector is responsible for this.
In contrast to value types, a reference type does not necessarily have a value. It can be null. This means that the variable does not reference any data.

What Is The Importance Of Ping In Your Website And Also Backlink Generator

Ping is a basic Internet program that allows a user to verify that a particular IP address exists and can accept requests.
Ping is used diagnostically to ensure that a host computer the user is trying to reach is actually operating. Ping works by sending an Internet Control Message Protocol (ICMP) Echo Request to a specified interface on the network and waiting for a reply. Ping can be used for troubleshooting to test connectivity and determine response time.
As a verb, ping means "to get the attention of" or "to check for the presence of" another party online. The computer acronym (for Packet Internet or Inter-Network Groper) was contrived to match the submariners' term for the sound of a returned sonar pulse.
Tip: To find out the dot address (such as 205.245.172.72) for a given domain name, Windows users can go to their command prompt screen (start/run/cmd) and enter ping xxxxx.yyy (where xxxxx is the second-level domain name like "whatis" and yyy is the top-level domain name like "com").

Here is some ping sites you can ping your site for free.Increase your Website traffic.

Ping

http://www.bulkping.com/
http://pingmyblog.com/
http://autopinger.com/
http://www.just-ping.com/
http://feedshark.brainbliss.com/
http://www.blogpingtool.com/
http://feedshark.brainbliss.com/
http://pingomatic.com/
http://www.improveseorank.com/free-seo-submission.php
http://www.pingfarm.com/
http://www.mypagerank.net/service_pingservice_index
http://www.pingler.com/
http://www.pingmylink.com/
http://tools.pingdom.com/fpt/
http://pingates.com/
http://pingoat.net/
http://www.freewebsubmission.com/
http://ping.in/
http://ping4free.com/
http://www.syncr.com/

Backlink Generator

http://www.randolfsmith.com/autobacklinkcode.php
http://www.backlinkgenerator.net/
http://backlinkin.com/
http://www.2000backlink.com/
http://marketingblogonline.com/autobacklinks/
http://www.imtalk.org/cmps_index.php?pageid=IMT-Website-Submitter
http://www.webmasterdeck.com/tools/wsbacklinker/
http://www.freebacklinksgenerator.com/freebacklinks.php
http://seouk.com/backlinks/
http://freebacklink.net/
http://nickstraffictricks.com/1537_free-back-links-to-your-site/
http://simplesitesbigprofits.org/free-back-links/
http://myrtlebeachhouserentals.org/free-backlinks/
http://www.curefortoenailfungus.org/free-back-links/
http://backlink.us/
http://www.createbacklinks.org/createbacklinks.php

How To Directory Info Classes Use In C# And Directory Info Introduction

The File and the Directory classes, which we have used in the previous couple of chapters, are great for direct file and directory manipulation. However, sometimes we wish to get information on them instead, and once again, the System.IO namespace comes to our rescue: The FileInfo and DirectoryInfo classes. In this chapter, we will look into some of the ways to use these two classes.

First, let's explore a simple way to use the FileInfo class.

static void Main(string[] args)
{
    FileInfo fi = new FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location);
    if(fi != null)
        Console.WriteLine(String.Format("Information about file: {0}, {1} bytes, last modified on {2} - Full path: {3}", fi.Name, fi.Length, fi.LastWriteTime, fi.FullName));
    Console.ReadKey();
}

We create a new instance of the FileInfo class. It takes one parameter, which is the path to the file we want information about. We could have just specified a filename, but for fun, I thought it would be cool to get information about the actual application we are working on, that is, the EXE file that our project is compiled into. Since we don't have access to the Application project in a Console application (it's part of the WinForms assembly), we use a bit of Reflection to get the path to the current assembly. This is all way out of the scope of this particular chapter, but at least now you know.

Once we have a FileInfo instance, we output all sorts of information about it. Try running the application and you will see. All very nice and easy, and if you look at the FileInfo class, you will see that it offers even more information, as well as shortcuts to the methods found on the File class - and why not? We have a reference to the file anyway with the FileInfo instance, so we might as well get the same options as on the File class.

Now, information about a single file is just fine, but using the DirectoryInfo class, we can get information about all files and directories within a directory, which is obviously a very common scenario. Let me show you with a simple example:

DirectoryInfo di = new DirectoryInfo(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location));
if(di != null)
{
    FileInfo[] subFiles = di.GetFiles();
    if(subFiles.Length > 0)
    {
        Console.WriteLine("Files:");
        foreach(FileInfo subFile in subFiles)
        {
            Console.WriteLine("   " + subFile.Name + " (" + subFile.Length + " bytes)");
        }
    }
    Console.ReadKey();
}

Instead of a FileInfo instance, we create a DirectoryInfo instance. We use the same trick to get the path of the executing file, and then the GetDirectoryName() method from the Path class, to get the directory part of the path only. We use the GetFiles() method to get an array of FileInfo instances, each representing a file in the directory. We then loop through it, printing out each filename and size.

Perhaps we want the directories as well. It's just as easy:

DirectoryInfo[] subDirs = di.GetDirectories();
if(subDirs.Length > 0)
{
    Console.WriteLine("Directories:");
    foreach(DirectoryInfo subDir in subDirs)
    {
        Console.WriteLine("   " + subDir.Name);
    }
}


In some situations, you might only want files or directories with a specific name or file extension. Fortunately, FileInfo and DirectoryInfo has some pretty good support for that as well.

Generic Introduction With Example With Boxing And Unboxing

 Generic Introduction

Generics are the most powerful feature of C# 2.0. Generics allow you to define type-safe data structures, without committing to actual data types. This results in a significant performance boost and higher quality code, because you get to reuse data processing algorithms without duplicating type-specific code. In concept, generics are similar to C++ templates, but are drastically different in implementation and capabilities. This article discusses the problem space generics address, how they are implemented, the benefits of the programming model, and unique innovations, such as constrains, generic methods and delegates, and generic inheritance. You will also see how generics are utilized in other areas of the .NET Framework such as reflection, arrays, collections, serialization, and remoting, and how to improve on the basic offering.

Example Code

Code without using generics:

public class Stack
{
   object[] store;
   int size; 
   public void Push(object x) {...}
   public object Pop() {...}
} 

Boxing and unboxing overhead:

You can push a value of any type onto a stack. To retrieve, the result of the Pop method must be explicitly cast back. For example if an integer passed to the Push method, it is automatically boxed. While retrieving, it must be unboxed with an explicit type cast.

Stack stack = new Stack();
stack.Push(3);
int i = (int)stack.Pop(); //unboxing with explicit int casting 

Such boxing and unboxing operations add performance overhead since they involve dynamic memory allocations and run-time type checks.
No strong Type information at Compile Time

Another issue with the Stack class: It is not possible to enforce the kind of data placed on a stack. For example, a string can be pushed on a stack and then accidentally cast to the wrong type like integer after it is retrieved:

Stack stack = new Stack();
stack.Push("SomeName");   //pushing the string
int i = (int)stack.Pop();  //run-time exception will be thrown at this point

The above code is technically correct and you will not get any compile time error. The problem does not become visible until the code is executed; at that point an InvalidCastException is thrown.
Code with generics

In C# with generics, you declare class Stack <T> {...}, where T is the type parameter. Within class Stack <T> you can use T as if it were a type. You can create a Stack as Integer by declaring Stack <int> or Stack as Customer object by declaring Stack<Customer>. Simply your type arguments get substituted for the type parameter. All of the Ts become ints or Customers, you don't have to downcast, and there is strong type checking everywhere.

public class Stack<T>
{  // items are of type T, which is kown when you create the object
   T[] items; 
   int count; 
   public void Push(T item)    {...}
  //type of method pop will be decided when you creat the object 
   public T Pop()
   {...}
} 

In the following example, int is given as the type argument for T:

Stack<int> stack = new Stack<int>();
stack.Push(3);
int i = stack.Pop(); 

The Stack<int> type is called a constructed type. In the Stack<int> type, every occurrence of T is replaced with the type argument int. The Push and Pop methods of a Stack<int> operate on int values, making it a compile-time error to push values of other types onto the stack, and eliminating the need to explicitly cast values back to their original type when they are retrieved.

You can use parameterization not only for classes but also for interfaces, structs, methods and delegates.

//For Interfaces                     
interface IComparable <T>

//for structs                                                           
struct HashBucket <K,D>

//for methods                                                            
static void Reverse <T> (T[] arr)

//for delegates                                                         
delegate void Action <T> (T arg)

Importance Of Meta Tags In Websites


 <meta … > element used to provide structured metadata about a Web page. Multiple elements are often used on the same page: the element is the same, but its attributes are different. Meta elements can be used to specify page description, keywords and any other metadata not provided through the other head elements and attributes.
The meta element has two uses: either to emulate the use of the HTTP response header, or to embed additional metadata within the HTML document.
With HTML up to and including HTML 4.01 and XHTML, there were four valid attributes: content, http-equiv, name and scheme. Under HTML 5 there are now five valid attributes: charset having been added. http-equiv is used to emulate the HTTP header. name to embed metadata. The value of the statement, in either case, is contained in the content attribute, which is the only required attribute unless charset is given. charset is used to indicate the character set of the document, and is available in HTML5.
Such elements must be placed as tags in the head section of an HTML or XHTML document.

VB Script Code


<html>
<body>

<script type="text/vbscript">
document.write("This is my first VBScript!")
</script>

</body>
</html>

SVG Code


<html>
<body>
<h1>My first SVG</h1>

<svg xmlns="http://wwwclasscomputercode.blogspot.com/2000/svg" version="1.1">
  <circle cx="100" cy="50" r="40" stroke="black"
  stroke-width="2" fill="red" />

</svg>
</body>
</html>

HTML 5 Tags For Learning Student

Tag Description New in HTML5?
<!--...--> Specifies a comment  
<!DOCTYPE>  Specifies the document type  
<a> Specifies a hyperlink  
<abbr> Specifies an abbreviation  
<address> Specifies an address element  
<area> Specifies an area inside an image map  
<article> Specifies an article NEW
<aside> Specifies content aside from the page content NEW
<audio> Specifies sound content NEW
<b> Specifies bold text  
<base> Specifies a base URL for all the links in a page  
<bdi> For bi-directional text formatting NEW
<bdo> Specifies the direction of text display  
<blockquote> Specifies a long quotation  
<body> Specifies the body element  
<br> Inserts a single line break  
<button> Specifies a push button  
<canvas> Define graphics NEW
<caption> Specifies a table caption  
<cite> Specifies a citation  
<code> Specifies computer code text  
<col> Specifies attributes for table columns   
<colgroup> Specifies groups of table columns  
<command> Specifies a command NEW
<data> Allows for machine-readable data to be provided NEW
<datagrid> Allows for an interactive representation of tree, list, or tabular data NEW
<datalist> Specifies an "autocomplete" dropdown list NEW
<dd> Specifies a definition description  
<del> Specifies deleted text  
<details> Specifies details of an element NEW
<dfn> Defines a definition term  
<div> Specifies a section in a document  
<dl> Specifies a definition list  
<dt> Specifies a definition term  
<em> Specifies emphasized text   
<embed> Specifies external application or interactive content NEW
<eventsource> Specifies a target for events sent by a server NEW
<fieldset> Specifies a fieldset  
<figcaption> Specifies caption for the figure element. NEW
<figure> Specifies a group of media content, and their caption NEW
<footer> Specifies a footer for a section or page NEW
<form> Specifies a form   
<h1> Specifies a heading level 1  
<h2> Specifies a heading level 2  
<h3> Specifies a heading level 3  
<h4> Specifies a heading level 4  
<h5> Specifies a heading level 5  
<h6> Specifies a heading level 6  
<head> Specifies information about the document  
<header> Specifies a group of introductory or navigational aids, including hgroup elements NEW
<hgroup> Specifies a header for a section or page NEW
<hr> Specifies a horizontal rule  
<html> Specifies an html document  
<i> Specifies italic text  
<iframe> Specifies an inline sub window (frame)  
<img> Specifies an image  
<input> Specifies an input field  
<ins> Specifies inserted text  
<kbd> Specifies keyboard text  
<keygen> Generates a key pair NEW
<label> Specifies a label for a form control  
<legend> Specifies a title in a fieldset  
<li> Specifies a list item  
<link> Specifies a resource reference  
<mark> Specifies marked text NEW
<map> Specifies an image map   
<menu> Specifies a menu list  
<meta> Specifies meta information  
<meter> Specifies measurement within a predefined range NEW
<nav> Specifies navigation links NEW
<noscript> Specifies a noscript section  
<object> Specifies an embedded object  
<ol> Specifies an ordered list  
<optgroup> Specifies an option group  
<option> Specifies an option in a drop-down list  
<output> Specifies some types of output NEW
<p> Specifies a paragraph  
<param> Specifies a parameter for an object  
<pre> Specifies preformatted text  
<progress> Specifies progress of a task of any kind NEW
<q> Specifies a short quotation  
<ruby> Specifies a ruby annotation (used in East Asian typography) NEW
<rp> Used for the benefit of browsers that don't support ruby annotations NEW
<rt> Specifies the ruby text component of a ruby annotation. NEW
<s> Indicates text that's no longer accurate or relevant.  
<samp> Specifies sample computer code  
<script> Specifies a script  
<section> Specifies a section NEW
<select> Specifies a selectable list  
<small> Specifies small text  
<source> Specifies media resources NEW
<span> Specifies a section in a document  
<strong> Specifies strong text  
<style> Specifies a style definition  
<sub> Specifies subscripted text  
<summary> Specifies a summary / caption for the <details> element NEW
<sup> Specifies superscripted text  
<table> Specifies a table  
<tbody> Specifies a table body  
<td> Specifies a table cell  
<textarea> Specifies a text area  
<tfoot> Specifies a table footer  
<th> Specifies a table header  
<thead> Specifies a table header  
<time> Specifies a date/time NEW
<title> Specifies the document title  
<tr> Specifies a table row  
<track> Specifies a text track for media such as video and audio NEW
<u> Specifies text with a non-textual annotation.  
<ul> Specifies an unordered list  
<video> Specifies a video NEW
<wbr> Specifies a line break opportunity for very long words and strings of text with no spaces. NEW

Nullable Values Code In C#

System.Type type = typeof(int?);
Or 
 int? i = 5;
  Type t = i.GetType();
  Console.WriteLine(t.FullName); //"System.Int32"
Or 
  static void Main(string[] args)
  {
    int? i = 5;
    if (i is int) // true
      //…
  }
 

IDictionary Code In C#

Dictionary<string, int> colStates = new Dictionary<string,int>();

int OtherCount = 0;

foreach(string key in colStates.Keys)
{

    double  Percent = colStates[key] / TotalCount;

    if (Percent < 0.05)
    {
        OtherCount += colStates[key];
        colStates[key] = 0;
    }
}

colStates.Add("Other", OtherCount);

Java And MS Sql Connectivity Code

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class ConnectMSSQLServer
{
   public void dbConnect(String db_connect_string,
            String db_userid,
            String db_password)
   {
      try {
         Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
         Connection conn = DriverManager.getConnection(db_connect_string,
                  db_userid, db_password);
         System.out.println("connected");
         Statement statement = conn.createStatement();
         String queryString = "select * from sysobjects where type='u'";
         ResultSet rs = statement.executeQuery(queryString);
         while (rs.next()) {
            System.out.println(rs.getString(1));
         }
      } catch (Exception e) {
         e.printStackTrace();
      }
   }

   public static void main(String[] args)
   {
      ConnectMSSQLServer connServer = new ConnectMSSQLServer();
      connServer.dbConnect("jdbc:sqlserver://&lt;hostname&gt;", "&lt;user&gt;",
               "&lt;password&gt;");
   }
}

RSS Feed Code

RSS Feed Code
RSS Feed<script type="text/javascript">
<!--
rssmikle_url="http://classcomputercode.blogspot.com/feeds/posts/default";
rssmikle_frame_width="60";
rssmikle_frame_height="150";
rssmikle_target="_blank";
rssmikle_font="";
rssmikle_font_size="13";
rssmikle_border="on";
rssmikle_css_url="";
rssmikle_title="on";
rssmikle_title_bgcolor="#0066FF";
rssmikle_title_color="#FFFFFF";
rssmikle_title_bgimage="http://";
rssmikle_item_bgcolor="#FFFFFF";
rssmikle_item_bgimage="http://";
rssmikle_item_title_length="15";
rssmikle_item_title_color="#666666";
rssmikle_item_border_bottom="on";
rssmikle_item_description="on";
rssmikle_item_description_length="100";
rssmikle_item_description_color="#666666";
rssmikle_item_date="off";
rssmikle_item_description_tag="off";
rssmikle_item_podcast="icon";
//-->
</script>
<script type="text/javascript" src="http://feed.mikle.com/js/rssmikle.js"></script>
<div style="font-size:10px; text-align:right;">
<a href="http://feed.mikle.com/en/" target="_blank" style="color:#CCCCCC;">FeedWind</a>
<!--Please display the above link in your web page according to Terms of Service.-->
</div>
<!-- end feedwind code -->