XML Definition: XML stands for Extensible Markup Language. XML is a markup language much like HTML. XML was designed to describe data. XML tags are not predefined in XML. You must define your own tags. XML is self describing. XML uses a DTD (Document Type Definition) to formally describe the data. Xml Document: Xml Document [...]
Archive for February, 2009
Xml Basics
Posted in XML on February 10, 2009 | 1 Comment »
Find whether the class inherited from a particular interface
Posted in C# .Net on February 10, 2009 | 1 Comment »
/* interface and ‘is’ operator*/ Definition: By using ‘is’ operator we can find that, whether the class is inherited from a particular interface/class. EXAMPLE 1: using System; using System.Collections.Generic; using System.Text; using System.Reflection; namespace LearningConcepts { interface INode { string Text { get; set; } object Tag { get; set; } int Height { get; [...]
Reflection
Posted in C# .Net on February 10, 2009 | 2 Comments »
10. Reflection Definition: We can access some data about object at runtime by using Reflection. That information contain · Data of the class · Names of the Methods that are inside the class · Constructor of that Object. To write a C# .Net program this uses reflection, The program should use [...]
Oops Concepts
Posted in C# .Net on February 10, 2009 | 7 Comments »
7. Oops Concepts ABSTRACT CLASS: Abstract class can simply defined as incomplete class. It contains one or more incomplete methods called abstract methods. It leaves the implementation of these methods to derived or sub classes. Since abstract classes are incomplete, they can not be instantiated. They must be sub-classed in order to use their [...]
Using and Using Alias
Posted in C# .Net on February 10, 2009 | Leave a Comment »
6. Using & Using Alias The using directive has two uses: To allow the use of types in a namespace so that you do not have to qualify the use of a type in that namespace: Using System.Text; // Using Directives All of the members defined within name of a Namespace are brought into [...]
C# Namespaces
Posted in C# .Net on February 10, 2009 | 1 Comment »
C# .Net Namespaces Namespace: Namespace is logically group’s classes. Namespace can span in multiple assemblies. Namespaces and its usage: System is the basic namespace for .Net Framework. It is having the following Namespaces Collections: The .NET Framework provides specialized classes for data storage and retrieval. These classes provide support for stacks, queues, lists, [...]
Just in time compiler
Posted in C# .Net on February 10, 2009 | Leave a Comment »
3. Just In Time Compiler (JIT) During Run Time, the CLR invokes the JIT compiler to convert the MSIL into Native code (i.e. Executable Binary Code). When the Function is called, the IL of the function’s body is converted to Native code Just In Time. So the part of code that is not [...]
Sending e-mails with C# .NET 2.0
Posted in Asp.net on February 10, 2009 | Leave a Comment »
First step: Setting-up your SMTP (Simple Mail Transfer Protocol) you must have installed IIS (internet information services), so you can setup your SMTP Virtual Server from there. Control Panel->Administrative Tools->Internet Information Services , then you select the SMTP Virtual Server Properties and grant permission to local host (127.0.0.1) (Access->Relay). Second Step: [...]
Smtp Classes in .Net
Posted in Asp.net on February 10, 2009 | 1 Comment »
MailMessage Class: The MailMessage class can be considered the foundation class of the System.Net.Mail namespace. It deals with creating and managing the email message. All other classes will somehow interact with this class. The MailMessage class exposes such properties as the Property Description Attachments Gets the attachment collection used to store data attached to [...]
SMTP Basics
Posted in Asp.net on February 10, 2009 | 1 Comment »
Simple Mail Transfer Protocol: Short for Simple Mail Transfer Protocol, a protocol for sending e-mail messages between servers. Most e-mail systems that send mail over the Internet use SMTP to send messages from one server to another; the messages can then be retrieved with an e-mail client using either POP or IMAP. In addition, SMTP [...]
