Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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); } } } // 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
- UrlPath.cs
- AuthorizationRule.cs
- OpenTypeMethods.cs
- DynamicMethod.cs
- WebResponse.cs
- WindowProviderWrapper.cs
- NumberSubstitution.cs
- ListParaClient.cs
- SoapSchemaExporter.cs
- NumberSubstitution.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- HostedHttpContext.cs
- OutputCacheProfile.cs
- PolyQuadraticBezierSegment.cs
- DocumentGridContextMenu.cs
- PageRequestManager.cs
- PropertyGeneratedEventArgs.cs
- PropertyValue.cs
- SingletonChannelAcceptor.cs
- ToolStripItemDataObject.cs
- Stack.cs
- LinqDataSourceValidationException.cs
- RegexCaptureCollection.cs
- EmptyElement.cs
- XmlSchemaAll.cs
- MimeFormReflector.cs
- XmlElementList.cs
- HttpModulesSection.cs
- PreProcessor.cs
- DelegatingConfigHost.cs
- PropertyGridEditorPart.cs
- SafeIUnknown.cs
- TitleStyle.cs
- AssociationSetMetadata.cs
- WindowsListViewGroupSubsetLink.cs
- ButtonFlatAdapter.cs
- HttpValueCollection.cs
- OleDbConnectionFactory.cs
- dataobject.cs
- SynchronizedInputProviderWrapper.cs
- AccessorTable.cs
- PixelFormat.cs
- SimpleType.cs
- BinaryFormatterSinks.cs
- PtsCache.cs
- CodeIndexerExpression.cs
- TemplateBuilder.cs
- CodeSpit.cs
- BamlWriter.cs
- RegexCompilationInfo.cs
- ScriptManager.cs
- XmlQueryType.cs
- BevelBitmapEffect.cs
- SoapCommonClasses.cs
- StatusStrip.cs
- ChooseAction.cs
- DbMetaDataCollectionNames.cs
- GridEntryCollection.cs
- ReachIDocumentPaginatorSerializer.cs
- OSFeature.cs
- x509store.cs
- TextProviderWrapper.cs
- SchemaMapping.cs
- QilGeneratorEnv.cs
- altserialization.cs
- MenuItemStyle.cs
- EndPoint.cs
- MaskInputRejectedEventArgs.cs
- _UncName.cs
- EventBuilder.cs
- ResourceDictionary.cs
- Pkcs7Signer.cs
- IdentitySection.cs
- PrePostDescendentsWalker.cs
- EnumBuilder.cs
- SchemaMerger.cs
- NullableDoubleSumAggregationOperator.cs
- Grant.cs
- PerfService.cs
- NavigationWindowAutomationPeer.cs
- MarkupExtensionReturnTypeAttribute.cs
- SerializerWriterEventHandlers.cs
- PipelineComponent.cs
- XmlSchemaGroup.cs
- XmlWriterTraceListener.cs
- AlternateViewCollection.cs
- Util.cs
- DataServiceRequestException.cs
- CodeLabeledStatement.cs
- SecurityPermission.cs
- BookmarkUndoUnit.cs
- EventProviderWriter.cs
- oledbmetadatacollectionnames.cs
- SafeBitVector32.cs
- SrgsToken.cs
- DigitShape.cs
- sqlnorm.cs
- AdapterDictionary.cs
- BrushProxy.cs
- PasswordTextContainer.cs