Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Reflection / Emit / EventToken.cs / 1 / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- M3DUtil.cs
- SmtpReplyReaderFactory.cs
- FunctionQuery.cs
- LocalizationComments.cs
- graph.cs
- ImageSourceConverter.cs
- FormViewCommandEventArgs.cs
- ThicknessKeyFrameCollection.cs
- PropertyChangedEventManager.cs
- CompilerParameters.cs
- ObsoleteAttribute.cs
- DbFunctionCommandTree.cs
- ScriptManagerProxy.cs
- ServiceNameElement.cs
- TextParagraphCache.cs
- MonitoringDescriptionAttribute.cs
- CacheSection.cs
- MarkupExtensionReturnTypeAttribute.cs
- ReservationNotFoundException.cs
- xsdvalidator.cs
- InfoCardSymmetricCrypto.cs
- GradientStop.cs
- DragEvent.cs
- DataGridViewRowStateChangedEventArgs.cs
- Header.cs
- SmiConnection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- JoinGraph.cs
- MsmqProcessProtocolHandler.cs
- FacetValues.cs
- TdsValueSetter.cs
- RIPEMD160.cs
- ParameterCollection.cs
- DataGridTextBox.cs
- Validator.cs
- EFAssociationProvider.cs
- LinkClickEvent.cs
- XmlComment.cs
- ContainerActivationHelper.cs
- SqlExpander.cs
- OutputWindow.cs
- AxisAngleRotation3D.cs
- OutgoingWebResponseContext.cs
- DoubleCollectionConverter.cs
- BooleanFunctions.cs
- InternalTypeHelper.cs
- TransformerConfigurationWizardBase.cs
- Native.cs
- ThreadSafeList.cs
- EventListenerClientSide.cs
- compensatingcollection.cs
- Aes.cs
- smtpconnection.cs
- UriExt.cs
- StoragePropertyMapping.cs
- HtmlSelect.cs
- Exceptions.cs
- GZipUtils.cs
- DataGridPagerStyle.cs
- SamlEvidence.cs
- SelectionService.cs
- ToolStripRenderEventArgs.cs
- WindowsToolbar.cs
- ToolBarOverflowPanel.cs
- CompiledAction.cs
- XamlReader.cs
- DynamicControl.cs
- ExceptionRoutedEventArgs.cs
- TimeZoneNotFoundException.cs
- followingquery.cs
- SafeFileMappingHandle.cs
- MailWriter.cs
- QilFunction.cs
- Debugger.cs
- NameSpaceExtractor.cs
- HtmlTable.cs
- Composition.cs
- InternalsVisibleToAttribute.cs
- ProcessModelInfo.cs
- ExeConfigurationFileMap.cs
- TaskFactory.cs
- FrameworkElementFactory.cs
- GroupedContextMenuStrip.cs
- ContentOperations.cs
- UntrustedRecipientException.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- DirectoryGroupQuery.cs
- _emptywebproxy.cs
- TdsParserSafeHandles.cs
- FieldToken.cs
- XmlUtf8RawTextWriter.cs
- ValidationUtility.cs
- Completion.cs
- SHA384.cs
- FileUtil.cs
- ScrollViewerAutomationPeer.cs
- MessageLoggingElement.cs
- EntityContainer.cs
- Paragraph.cs
- MulticastNotSupportedException.cs