Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / EventToken.cs / 1305376 / EventToken.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Class: EventToken
**
** [....]
**
**
** Propertybuilder is for client to define properties for a class
**
**
===========================================================*/
namespace System.Reflection.Emit {
using System;
using System.Reflection;
using System.Security.Permissions;
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct EventToken
{
public static readonly EventToken Empty = new EventToken();
internal int m_event;
internal EventToken(int str) {
m_event=str;
}
public int Token {
get { return m_event; }
}
public override int GetHashCode()
{
return m_event;
}
public override bool Equals(Object obj)
{
if (obj is EventToken)
return Equals((EventToken)obj);
else
return false;
}
public bool Equals(EventToken obj)
{
return obj.m_event == m_event;
}
public static bool operator ==(EventToken a, EventToken b)
{
return a.Equals(b);
}
public static bool operator !=(EventToken a, EventToken b)
{
return !(a == b);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeBitVector32.cs
- ContextTokenTypeConverter.cs
- OracleDataAdapter.cs
- CustomErrorsSection.cs
- TextServicesLoader.cs
- EventSourceCreationData.cs
- NativeCompoundFileAPIs.cs
- SqlAliaser.cs
- MsmqIntegrationSecurityElement.cs
- ViewGenResults.cs
- TemplateGroupCollection.cs
- ControlBuilderAttribute.cs
- Interfaces.cs
- CredentialCache.cs
- HWStack.cs
- FixedSOMPageConstructor.cs
- TextRunCacheImp.cs
- BaseTemplateParser.cs
- WindowsListViewGroup.cs
- XmlILIndex.cs
- ProfileInfo.cs
- CommonObjectSecurity.cs
- CodeCatchClause.cs
- TextAction.cs
- CqlQuery.cs
- MDIControlStrip.cs
- BaseHashHelper.cs
- CodeStatement.cs
- ConvertTextFrag.cs
- categoryentry.cs
- ToolStripItemCollection.cs
- ObjectStateEntry.cs
- HttpResponse.cs
- DialogBaseForm.cs
- loginstatus.cs
- DesignTimeTemplateParser.cs
- RunInstallerAttribute.cs
- StandardOleMarshalObject.cs
- NonParentingControl.cs
- SoapAttributeOverrides.cs
- WorkflowServiceInstance.cs
- HttpCapabilitiesEvaluator.cs
- TransportElement.cs
- DataServiceBuildProvider.cs
- FilterException.cs
- SimpleHandlerFactory.cs
- DelegateSerializationHolder.cs
- messageonlyhwndwrapper.cs
- OracleFactory.cs
- SafeRegistryKey.cs
- EmptyControlCollection.cs
- BitmapFrameDecode.cs
- HtmlInputHidden.cs
- InternalBufferOverflowException.cs
- EpmSyndicationContentDeSerializer.cs
- XPathCompileException.cs
- ToolStripRendererSwitcher.cs
- XmlRawWriter.cs
- MultiPageTextView.cs
- OdbcEnvironmentHandle.cs
- CodeMemberProperty.cs
- ArrayWithOffset.cs
- SecurityBindingElementImporter.cs
- PropertyManager.cs
- IdentitySection.cs
- ReturnType.cs
- WindowsContainer.cs
- AnnotationHelper.cs
- DataGridViewCellConverter.cs
- Icon.cs
- TextSpanModifier.cs
- ListViewHitTestInfo.cs
- BamlVersionHeader.cs
- basevalidator.cs
- ReaderContextStackData.cs
- GifBitmapDecoder.cs
- Menu.cs
- DiscoveryServerProtocol.cs
- FlowDecision.cs
- ResourceBinder.cs
- SqlAggregateChecker.cs
- ServicePoint.cs
- BufferedStream.cs
- View.cs
- Icon.cs
- DesignerTransaction.cs
- ObjectManager.cs
- File.cs
- CodeMemberMethod.cs
- CacheChildrenQuery.cs
- AsymmetricKeyExchangeFormatter.cs
- ToolStripGripRenderEventArgs.cs
- NetworkInterface.cs
- DataControlButton.cs
- PathSegmentCollection.cs
- Button.cs
- COM2ExtendedUITypeEditor.cs
- ToolboxItemLoader.cs
- DbConnectionOptions.cs
- RightsManagementProvider.cs