Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeSystemHelpers.cs
- BackgroundWorker.cs
- ScriptingRoleServiceSection.cs
- CodeValidator.cs
- EventPrivateKey.cs
- VariableExpressionConverter.cs
- FactoryMaker.cs
- LineServicesRun.cs
- ApplicationBuildProvider.cs
- AlphaSortedEnumConverter.cs
- altserialization.cs
- PackWebRequest.cs
- Line.cs
- WindowsPen.cs
- ACL.cs
- WinCategoryAttribute.cs
- FrameworkRichTextComposition.cs
- PropertyChangingEventArgs.cs
- SettingsPropertyWrongTypeException.cs
- XmlSchemaComplexContentRestriction.cs
- BitmapEffectvisualstate.cs
- SemanticBasicElement.cs
- DesignerCategoryAttribute.cs
- formatstringdialog.cs
- ValidatorUtils.cs
- AppSettingsReader.cs
- ResourceCategoryAttribute.cs
- OracleBoolean.cs
- ACE.cs
- ComponentTray.cs
- XmlDataSourceView.cs
- Clock.cs
- EdmScalarPropertyAttribute.cs
- SystemIPAddressInformation.cs
- HtmlEmptyTagControlBuilder.cs
- UpdatePanelControlTrigger.cs
- HttpProfileBase.cs
- AtomPub10ServiceDocumentFormatter.cs
- ProtocolsConfigurationHandler.cs
- DrawingImage.cs
- PathFigureCollectionConverter.cs
- ListenerSessionConnectionReader.cs
- HtmlInputCheckBox.cs
- XsdDataContractExporter.cs
- XmlWrappingReader.cs
- HttpProfileGroupBase.cs
- XmlQueryCardinality.cs
- FixedPageStructure.cs
- DataViewManagerListItemTypeDescriptor.cs
- DropDownHolder.cs
- Activator.cs
- StringPropertyBuilder.cs
- DelegatingTypeDescriptionProvider.cs
- EdmRelationshipRoleAttribute.cs
- MediaSystem.cs
- SourceFileBuildProvider.cs
- SqlBooleanMismatchVisitor.cs
- _LoggingObject.cs
- ListControl.cs
- UdpMessageProperty.cs
- CheckPair.cs
- Zone.cs
- SmiXetterAccessMap.cs
- ProxyOperationRuntime.cs
- DataGridViewRowsAddedEventArgs.cs
- SerializationObjectManager.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TextSegment.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ComboBoxItem.cs
- IMembershipProvider.cs
- PropertyGroupDescription.cs
- AccessDataSourceView.cs
- WebServicesDescriptionAttribute.cs
- OleDbParameter.cs
- DbFunctionCommandTree.cs
- SiteMap.cs
- XmlEncApr2001.cs
- SimpleHandlerBuildProvider.cs
- ToolStripSplitButton.cs
- SoapMessage.cs
- Converter.cs
- ExtensionSimplifierMarkupObject.cs
- StatusBarPanelClickEvent.cs
- XmlLoader.cs
- CodeObjectCreateExpression.cs
- DtdParser.cs
- Tokenizer.cs
- CodeCommentStatementCollection.cs
- XmlText.cs
- CfgRule.cs
- UIElementAutomationPeer.cs
- SweepDirectionValidation.cs
- UIElementAutomationPeer.cs
- EtwTrace.cs
- MultilineStringEditor.cs
- InvalidPropValue.cs
- uribuilder.cs
- AssociationTypeEmitter.cs
- StatusBarDrawItemEvent.cs