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
- FormatterServices.cs
- PersianCalendar.cs
- CodeGroup.cs
- StreamAsIStream.cs
- ListViewDeletedEventArgs.cs
- Point.cs
- XmlTextReaderImpl.cs
- RequestBringIntoViewEventArgs.cs
- ValidationResult.cs
- StateWorkerRequest.cs
- DataProtection.cs
- WCFBuildProvider.cs
- MeasureItemEvent.cs
- KeyPressEvent.cs
- QueryContinueDragEvent.cs
- SqlTriggerContext.cs
- BitConverter.cs
- ReadOnlyHierarchicalDataSource.cs
- NameValuePair.cs
- DependentList.cs
- EntityDataSourceChangingEventArgs.cs
- GridViewCommandEventArgs.cs
- ClipboardProcessor.cs
- RoutingService.cs
- IArgumentProvider.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- XmlSchemaInferenceException.cs
- DecimalAnimation.cs
- Multiply.cs
- FtpCachePolicyElement.cs
- PropertyGeneratedEventArgs.cs
- mda.cs
- PixelFormats.cs
- HandleRef.cs
- FileLevelControlBuilderAttribute.cs
- SafeViewOfFileHandle.cs
- Point.cs
- AnimationException.cs
- Ray3DHitTestResult.cs
- ToolBarButtonClickEvent.cs
- ZipIOBlockManager.cs
- _BufferOffsetSize.cs
- DbModificationClause.cs
- QuadraticBezierSegment.cs
- StringAttributeCollection.cs
- UnhandledExceptionEventArgs.cs
- FrugalMap.cs
- ContractValidationHelper.cs
- _BufferOffsetSize.cs
- Hex.cs
- OutKeywords.cs
- shaperfactoryquerycachekey.cs
- CodeCompiler.cs
- xdrvalidator.cs
- Boolean.cs
- DeferrableContentConverter.cs
- AudioSignalProblemOccurredEventArgs.cs
- ConstraintManager.cs
- CookieProtection.cs
- ShaderEffect.cs
- RelationshipSet.cs
- MimeMapping.cs
- BezierSegment.cs
- Constraint.cs
- XmlDocumentSurrogate.cs
- Deserializer.cs
- DescendantBaseQuery.cs
- StatusBar.cs
- CopyNamespacesAction.cs
- RemoveStoryboard.cs
- CommonGetThemePartSize.cs
- TransactionFlowOption.cs
- WebPartTransformerAttribute.cs
- Interfaces.cs
- MDIControlStrip.cs
- InstanceOwnerQueryResult.cs
- SEHException.cs
- MeasureItemEvent.cs
- XPathPatternBuilder.cs
- XmlObjectSerializerWriteContext.cs
- OuterGlowBitmapEffect.cs
- MessageSmuggler.cs
- PackageFilter.cs
- BaseCodeDomTreeGenerator.cs
- XmlSchemaAll.cs
- ComNativeDescriptor.cs
- GeneralTransform.cs
- WindowsToolbarItemAsMenuItem.cs
- MetricEntry.cs
- MetabaseServerConfig.cs
- UriTemplateClientFormatter.cs
- SafeCryptoHandles.cs
- WebDisplayNameAttribute.cs
- LocalizationComments.cs
- UnionCqlBlock.cs
- XmlTextWriter.cs
- LoginCancelEventArgs.cs
- ReadOnlyTernaryTree.cs
- DataGridViewTextBoxColumn.cs
- OleAutBinder.cs