Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- RuleSetBrowserDialog.cs
- ExpressionParser.cs
- HtmlEmptyTagControlBuilder.cs
- AutomationEvent.cs
- SqlCommandSet.cs
- SqlServices.cs
- SvcMapFileLoader.cs
- SerialErrors.cs
- HtmlTableRowCollection.cs
- RelationshipEndMember.cs
- StylusPoint.cs
- XmlElementElementCollection.cs
- Parser.cs
- DesignerSelectionListAdapter.cs
- QueryAsyncResult.cs
- HtmlShim.cs
- SplitterPanel.cs
- COM2FontConverter.cs
- DefaultValidator.cs
- SnapshotChangeTrackingStrategy.cs
- SizeConverter.cs
- Binding.cs
- XmlNamedNodeMap.cs
- ChannelManager.cs
- CodeChecksumPragma.cs
- SessionConnectionReader.cs
- DEREncoding.cs
- HashCodeCombiner.cs
- SecurityBindingElementImporter.cs
- LocatorBase.cs
- FormsAuthenticationUserCollection.cs
- MenuEventArgs.cs
- ComEventsHelper.cs
- LinkArea.cs
- Util.cs
- MenuItemStyle.cs
- RotateTransform3D.cs
- CapabilitiesRule.cs
- AddInAttribute.cs
- ResourcePermissionBase.cs
- WorkItem.cs
- AnnotationAuthorChangedEventArgs.cs
- UIPropertyMetadata.cs
- ColumnReorderedEventArgs.cs
- DebuggerAttributes.cs
- SQLInt16.cs
- TiffBitmapDecoder.cs
- ToolStripCollectionEditor.cs
- FormViewPagerRow.cs
- CodeIndexerExpression.cs
- PagesSection.cs
- DependentTransaction.cs
- XmlQueryStaticData.cs
- XmlUtil.cs
- IdleTimeoutMonitor.cs
- Types.cs
- MobileResource.cs
- IChannel.cs
- FixedBufferAttribute.cs
- PKCS1MaskGenerationMethod.cs
- CatalogZoneBase.cs
- RestHandlerFactory.cs
- SqlTypeConverter.cs
- PasswordRecoveryAutoFormat.cs
- RegisteredHiddenField.cs
- XmlExtensionFunction.cs
- PerformanceCountersElement.cs
- IssuerInformation.cs
- EastAsianLunisolarCalendar.cs
- ProxyManager.cs
- CodeTypeDeclarationCollection.cs
- DesignTimeParseData.cs
- XmlSchemaComplexContentExtension.cs
- ReachFixedDocumentSerializer.cs
- ObjectStateEntryDbDataRecord.cs
- SqlStatistics.cs
- LinqDataSourceContextData.cs
- SchemaEntity.cs
- _BasicClient.cs
- ObjectDataSourceStatusEventArgs.cs
- MatrixTransform3D.cs
- PrinterSettings.cs
- EntityViewContainer.cs
- XmlTextAttribute.cs
- FixedSOMElement.cs
- Base64Encoder.cs
- IncrementalReadDecoders.cs
- Animatable.cs
- NullableLongMinMaxAggregationOperator.cs
- DataKey.cs
- Error.cs
- ControlCodeDomSerializer.cs
- ResourceReferenceKeyNotFoundException.cs
- DataGridViewCellLinkedList.cs
- AccessViolationException.cs
- DrawingBrush.cs
- ResourceIDHelper.cs
- UTF7Encoding.cs
- CacheOutputQuery.cs
- XmlWhitespace.cs