Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- ConversionContext.cs
- ContentFileHelper.cs
- DecimalAverageAggregationOperator.cs
- WebPermission.cs
- Imaging.cs
- MailAddress.cs
- AuthorizationBehavior.cs
- CustomValidator.cs
- DynamicDataRoute.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- HtmlHead.cs
- DataGridViewUtilities.cs
- ListCollectionView.cs
- QueryCursorEventArgs.cs
- DataGridColumnCollection.cs
- PermissionAttributes.cs
- StorageMappingFragment.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- DrawListViewItemEventArgs.cs
- httpapplicationstate.cs
- StagingAreaInputItem.cs
- MonthCalendar.cs
- PropertyToken.cs
- SubqueryRules.cs
- CalendarDay.cs
- TemplateComponentConnector.cs
- FunctionCommandText.cs
- AddInAdapter.cs
- CodeThrowExceptionStatement.cs
- DoubleMinMaxAggregationOperator.cs
- panel.cs
- FixedSOMGroup.cs
- InheritedPropertyChangedEventArgs.cs
- ValuePattern.cs
- PolyLineSegment.cs
- MessageBox.cs
- DispatcherProcessingDisabled.cs
- DocumentApplicationJournalEntry.cs
- Crypto.cs
- HyperLinkField.cs
- Imaging.cs
- TextPattern.cs
- RestClientProxyHandler.cs
- DateTimeConverter2.cs
- CollectionChangeEventArgs.cs
- ToolBarButton.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Propagator.Evaluator.cs
- MethodImplAttribute.cs
- CoreChannel.cs
- UIElement.cs
- ProjectionAnalyzer.cs
- FixedTextView.cs
- SetStateDesigner.cs
- CallTemplateAction.cs
- XmlAttributeProperties.cs
- DeflateStream.cs
- FixedSOMPage.cs
- MatrixTransform.cs
- XmlSchemaIdentityConstraint.cs
- ReachUIElementCollectionSerializerAsync.cs
- Int64Storage.cs
- VerificationException.cs
- RelationshipEnd.cs
- BoolExpression.cs
- Icon.cs
- SHA512Managed.cs
- ParseNumbers.cs
- ConcurrentDictionary.cs
- GenericRootAutomationPeer.cs
- DBAsyncResult.cs
- ModelFunction.cs
- SqlXmlStorage.cs
- SafeViewOfFileHandle.cs
- DeploymentSectionCache.cs
- SplitterPanelDesigner.cs
- UserControlBuildProvider.cs
- FileFormatException.cs
- MembershipPasswordException.cs
- RegisteredHiddenField.cs
- PermissionToken.cs
- WindowsScrollBar.cs
- DigestTraceRecordHelper.cs
- EdmItemError.cs
- XmlSortKey.cs
- SuppressIldasmAttribute.cs
- WaitHandleCannotBeOpenedException.cs
- XsltLibrary.cs
- CodeTypeDeclarationCollection.cs
- NodeCounter.cs
- CompletionCallbackWrapper.cs
- EffectiveValueEntry.cs
- ComplexType.cs
- EditorZoneBase.cs
- Unit.cs
- TypeToTreeConverter.cs
- ChildChangedEventArgs.cs
- SystemWebCachingSectionGroup.cs
- VectorAnimationBase.cs
- DEREncoding.cs