 |
General Questions
1.Does C# support multiple-inheritance?
No. But you can use Interfaces.
2.Where is a protected class-level variable available?
It is available to any sub-class derived from base class
3.Are private class-level variables inherited?
Yes, but they are not...
By Sanskruti
Last Message By MarkC
|
19 256,746 |
 |
C# allows you to define two types of variables: value types and reference types. The value types hold actual values, while reference types hold references to values stored somewhere in memory.
Also value types are allocated on the stack and are available in most programming languages. Reference...
By pradeep
Last Message By chinujhon
|
23 91,314 |
 |
Introduction
C# is an object-oriented programming language developed by Microsoft Corporation . C# source code as well as those of other .NET languages is compiled into an intermediate byte code called Microsoft Intermediate Langauge. C# is primarily derived from the C, C++, and Java...
By Sanskruti
Last Message By amitets
|
11 20,624 |
 |
Custom Math Class that can check if a number is even or odd, calculate your rental payment, mean, percent, and percentage of a number. My custom class for some math problems, including a function to calculate payment on a house or rental agreement.
The Code
This class is used to calculate...
By pein87
|
0 1,491 |
 |
Multithreading has been there in the world of computer programming for years. Although, almost all developers pretend to know what multithreading is, it looks like multithreading requires a little more attention when implementing in the real world. Of course, multithreading is easy to understand...
By coderzone
Last Message By donor
|
7 8,931 |
 |
Windows Forms text boxes are used to get input from the user or to display text. The TextBox control is generally used for editable text, although it can also be made read-only. Text boxes can display multiple lines, wrap text to the size of the control, and add basic formatting. The TextBox...
By Sanskruti
Last Message By donor
|
10 282,939 |
 |
If you go through any standard C# books you will see the constructors and so I would not get into the details of the constructors but what is more important to me is the use of static constructors which is somethine new in C# or you can say that its a copy of initiliazation block in Java.
...
By Sanskruti
Last Message By donor
|
5 27,872 |
 |
Introduction
We use Winsock to establish connection between client and server . This is the beginning of everything in the computer of today's !!! The net is the most power tools of the programmers and you must learning to use it. In this article we will see how to create a simple chat...
By Febian
Last Message By skorec1
|
13 59,077 |
 |
When it comes to Visual Studio .NET; .NET framework is the heart and soul of everything. We cannot possibly talk about .NET without properly understanding what it really means by .NET framework. Therefore, this guide is for those who have been wondering what .NET framework is.
.NET framework...
By coderzone
Last Message By ashwani6508
|
10 8,483 |
 |
Introduction
This solution describes an approach how to send email messages with or without attachments.
Background
The EmailProgram class is used to send email messages with or without attachments.
The code
By naimish
Last Message By sk.mor100
|
5 17,011 |
 |
Encryption/Decryption file, string etc using C#
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
using System.IO;
namespace BHI.Rats
By naimish
Last Message By alternoboy
|
12 22,155 |
 |
Implementing Bubble Sort in C#
/*
** Simple class to sort an array in ascending order using bubble sort
** @author: Tanaz Kerawala
** @author: S Pradeep
** @date: 5/29/2007
*/
By pradeep
Last Message By unni krishnan.r
|
9 75,915 |
 |
Introduction
The parser gives you a place to start to write an XML parser in C#. We have used the System.Xml.
The code
public void ParseFile(string strPath)
{
XmlTextReader xmlReader = new XmlTextReader(strPath);
int iTab = 0;
By shabbir
Last Message By lovepc
|
2 73,719 |
 |
Introduction
How to capture the errors from application and write it in a log file. We have to mention the directory path in Webconfig file.
Background
This code is to capture the error log in log file with all information.
The code
By sameer_havakajoka
Last Message By shabbir
|
2 10,456 |
 |
Introduction
AdWords is Google's flagship advertising product. AdWords offers pay-per-click (PPC) advertising, and site-targeted advertising for both text and banner ads.
The Google AdWords API lets developers build applications that interact directly with the AdWords platform. With these...
By JosipK
Last Message By shabbir
|
3 6,930 |
 |
To start with include namespaces
using System.Diagnostics; // For prcesss related information
using System.Runtime.InteropServices; // For DLL importing
Now declare these variables
private const int SW_HIDE = 0; Now declare win32 function ShowWindow
By shabbir
Last Message By sameer_havakajoka
|
8 43,393 |
 |
Introduction
The OpenDocument Format (ODF) is an XML-based file format for representing electronic documents such as spreadsheets, charts, presentations and word processing documents. The standard was developed by the OASIS (Organization for the Advancement of Structured Information Standards),...
By filip
Last Message By shabbir
|
3 10,402 |
 |
Introduction
Commenting in any programming langauge is important part of development because it helps understanding the code better and supplements when working as a part of the large team and so C# being a langauge of the modern era has some of the best support any project needs as far as the...
By Sanskruti
Last Message By naimish
|
3 17,367 |
 |
Delegate.Invoke
Delegate.Invoke is used to execute a delegate on the current thread. A delegate is just a reference to a function or method, and Delegate.Invoke is the mechanism to call this function or method (similar to a normal function call).
Delegate.BeginInvoke
Delegate.BeginInvoke...
By shabbir
Last Message By varunjoshi
|
1 42,240 |
 |
Introduction
Before designing a class, we should have a very clear understanding about constructor. In this article I will discuss definition, types and features of constructor.
Definition
A constructor looks like a special method having no return type and its name is same with the class...
By sanjitsil
Last Message By shabbir
|
1 19,676 |