SerialReceived.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Sys / System / IO / Ports / SerialReceived.cs / 1 / SerialReceived.cs

                            // ==++== 
//
//   Copyright (c) Microsoft Corporation.  All rights reserved.
//
// ==--== 
/*============================================================
** 
** Type: SerialData 
**
** Purpose: Describes the types of receive events. 
**
** Date:  August 2002
**
** 
===========================================================*/
 
using Microsoft.Win32; 

namespace System.IO.Ports 
{
    public enum SerialData
 	{
	    Chars = NativeMethods.EV_RXCHAR, 
		Eof = NativeMethods.EV_RXFLAG,
	} 
 
    public class SerialDataReceivedEventArgs : EventArgs
    { 
        internal SerialData receiveType;
    	internal SerialDataReceivedEventArgs (SerialData eventCode) {
    	    receiveType = eventCode;
    	} 

    	public SerialData EventType { 
    	    get { return receiveType; } 
    	}
    } 

    public delegate void SerialDataReceivedEventHandler(object sender, SerialDataReceivedEventArgs e);
}
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK