Archive for the ‘C#’ Category

Standard C# Typed

Friday, February 22nd, 2008

The data types discussed have been standard c# types. There are a number of standard C# types you can use that will hold various types of data. Following is a list of some of the more commonly used C# types with the equivalent .NET type.

Type .NET Data Type Description
bool  System.Boolean  True/false values
byte System.Byte  1 or 0 values
char System.Char

 Single characters

decimal System.Decimal  Decimal values
double System.Double Large floating-point number
 float System.Single Small floating-point number
int System.Int32  Integer value
long System.Int64 Large integer value
object System.Object Generic object that can hold other types
short System.Int16  Short integer value
short System.Int16 Short integer value
string System.String  Array of characters

 

Using StreamReader

Thursday, February 21st, 2008

First you can use StreamReader you must using namespace IO like this code.

using System.IO;

after you use IO namespace when new StreamReader object you must declare in try{}catch(Exception ex){} like this.

try
{
StreamReader sr = new StreamReader(@"C:\Users\AWAT\Documents\Rule.txt");
string line;
while ((line = sr.ReadLine()) != null)
{
//Some code
}
}
catch(Exception ex)
{
MessageBox.show (ex.message);
}

.NET Micor Framework Invaders and Remote Robot Control

Thursday, February 21st, 2008

.NET Micro Framework Invaders and Remote Robot Control

Web can video in c#

Thursday, February 21st, 2008

This demo web cam video in C#

C# Sky Demo

Thursday, February 21st, 2008