Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Reflection / Emit / PropertyToken.cs / 1 / PropertyToken.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: PropertyToken ** ** ** 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 PropertyToken { public static readonly PropertyToken Empty = new PropertyToken(); internal int m_property; internal PropertyToken(int str) { m_property=str; } public int Token { get { return m_property; } } // Satisfy value class requirements public override int GetHashCode() { return m_property; } // Satisfy value class requirements public override bool Equals(Object obj) { if (obj is PropertyToken) return Equals((PropertyToken)obj); else return false; } public bool Equals(PropertyToken obj) { return obj.m_property == m_property; } public static bool operator ==(PropertyToken a, PropertyToken b) { return a.Equals(b); } public static bool operator !=(PropertyToken a, PropertyToken b) { return !(a == b); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TaskbarItemInfo.cs
- ReservationNotFoundException.cs
- Rule.cs
- PropertyKey.cs
- HtmlInputHidden.cs
- FontFamilyIdentifier.cs
- OdbcReferenceCollection.cs
- ConsoleCancelEventArgs.cs
- QualifiedCellIdBoolean.cs
- XmlSchemaInfo.cs
- BindingManagerDataErrorEventArgs.cs
- CompiledXpathExpr.cs
- PassportAuthenticationModule.cs
- AlphaSortedEnumConverter.cs
- ScriptRegistrationManager.cs
- Expander.cs
- ChannelManagerHelpers.cs
- LinqDataSourceDisposeEventArgs.cs
- WebBrowserUriTypeConverter.cs
- TargetInvocationException.cs
- XmlSchemaSimpleTypeList.cs
- SimpleWorkerRequest.cs
- SpAudioStreamWrapper.cs
- ToolStripGrip.cs
- FindCriteriaCD1.cs
- MessageQueueInstaller.cs
- PersonalizationEntry.cs
- HttpHandlersSection.cs
- LayoutEvent.cs
- Int32RectConverter.cs
- FeatureAttribute.cs
- SecUtil.cs
- LambdaCompiler.Logical.cs
- InternalPermissions.cs
- ServerIdentity.cs
- ModuleConfigurationInfo.cs
- GeneralTransform3D.cs
- Signature.cs
- recordstatefactory.cs
- CalendarModeChangedEventArgs.cs
- ProxyGenerator.cs
- InputDevice.cs
- EventBuilder.cs
- CodeArrayIndexerExpression.cs
- CategoryNameCollection.cs
- AffineTransform3D.cs
- LineSegment.cs
- EllipseGeometry.cs
- Msec.cs
- WebPartCancelEventArgs.cs
- ISCIIEncoding.cs
- TextBlockAutomationPeer.cs
- TextTreePropertyUndoUnit.cs
- UnsafeNativeMethods.cs
- HierarchicalDataTemplate.cs
- TypeDelegator.cs
- ListDesigner.cs
- ClientSettings.cs
- TaskSchedulerException.cs
- _WinHttpWebProxyDataBuilder.cs
- SetUserLanguageRequest.cs
- Perspective.cs
- DataGrid.cs
- TypeInformation.cs
- RequestUriProcessor.cs
- ExceptionAggregator.cs
- KeyGestureConverter.cs
- MultiSelectRootGridEntry.cs
- DifferencingCollection.cs
- TemplateControlCodeDomTreeGenerator.cs
- MembershipValidatePasswordEventArgs.cs
- EventMetadata.cs
- PropertyEmitterBase.cs
- XmlElementCollection.cs
- TypeFieldSchema.cs
- DeclarationUpdate.cs
- SafeEventLogWriteHandle.cs
- XmlLinkedNode.cs
- DocumentsTrace.cs
- AvtEvent.cs
- DataServices.cs
- DocumentScope.cs
- ReadOnlyCollectionBase.cs
- MissingMemberException.cs
- Image.cs
- RichTextBoxAutomationPeer.cs
- RegexCode.cs
- Funcletizer.cs
- SecurityKeyIdentifier.cs
- PageFunction.cs
- ProofTokenCryptoHandle.cs
- PasswordRecovery.cs
- GPRECT.cs
- XsdSchemaFileEditor.cs
- ModelVisual3D.cs
- SpellCheck.cs
- SerializerProvider.cs
- DependencyPropertyAttribute.cs
- LayoutEvent.cs
- ProgressBarHighlightConverter.cs