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
- MgmtConfigurationRecord.cs
- DelayLoadType.cs
- TextEditorMouse.cs
- QueryStringParameter.cs
- UriSection.cs
- ControlPropertyNameConverter.cs
- Primitive.cs
- TreeView.cs
- DataServiceQueryProvider.cs
- IItemProperties.cs
- Image.cs
- DecoderReplacementFallback.cs
- XmlSchemaDatatype.cs
- ProtocolElement.cs
- PersianCalendar.cs
- DetailsViewUpdateEventArgs.cs
- LoginUtil.cs
- AppSettingsSection.cs
- TouchFrameEventArgs.cs
- HandledMouseEvent.cs
- DataSourceCacheDurationConverter.cs
- HttpDigestClientCredential.cs
- Context.cs
- ResourcesGenerator.cs
- ReaderWriterLock.cs
- SqlUserDefinedAggregateAttribute.cs
- MenuItemCollectionEditorDialog.cs
- DiscoveryClientDocuments.cs
- CursorEditor.cs
- CommandValueSerializer.cs
- PropertyPushdownHelper.cs
- SecurityResources.cs
- CryptoConfig.cs
- IPHostEntry.cs
- DatePickerDateValidationErrorEventArgs.cs
- OutputCacheProfileCollection.cs
- PeerValidationBehavior.cs
- OleStrCAMarshaler.cs
- SqlConnectionManager.cs
- DrawTreeNodeEventArgs.cs
- DataSourceView.cs
- base64Transforms.cs
- NameScope.cs
- KeysConverter.cs
- DirectoryObjectSecurity.cs
- CodeDirectionExpression.cs
- DefaultMergeHelper.cs
- XmlEntityReference.cs
- smtpconnection.cs
- RecordsAffectedEventArgs.cs
- BigInt.cs
- CqlParserHelpers.cs
- EventHandlersStore.cs
- X509CertificateClaimSet.cs
- PropertyValueUIItem.cs
- XamlBrushSerializer.cs
- ConstraintCollection.cs
- Configuration.cs
- ProxyManager.cs
- DebugInfo.cs
- TransportationConfigurationTypeInstallComponent.cs
- path.cs
- JsonFormatWriterGenerator.cs
- XamlWrapperReaders.cs
- WindowsStartMenu.cs
- HtmlTableCell.cs
- PreDigestedSignedInfo.cs
- MemberAccessException.cs
- PagerStyle.cs
- BufferedGraphics.cs
- HttpModuleAction.cs
- InvalidComObjectException.cs
- SqlConnectionHelper.cs
- ExpressionBindings.cs
- httpstaticobjectscollection.cs
- MimeXmlReflector.cs
- TextDecorationLocationValidation.cs
- EntryPointNotFoundException.cs
- WebControlParameterProxy.cs
- DetailsViewUpdateEventArgs.cs
- EntityConnectionStringBuilder.cs
- Point3DAnimationUsingKeyFrames.cs
- CharConverter.cs
- ScrollBar.cs
- DataPointer.cs
- __Filters.cs
- LookupBindingPropertiesAttribute.cs
- RuntimeHelpers.cs
- ZipIOFileItemStream.cs
- ObjectQueryExecutionPlan.cs
- ColumnClickEvent.cs
- PolyBezierSegmentFigureLogic.cs
- WebPartCatalogCloseVerb.cs
- ToolStripSeparatorRenderEventArgs.cs
- SafePointer.cs
- SchemaEntity.cs
- MergeLocalizationDirectives.cs
- MetaColumn.cs
- SQLRoleProvider.cs
- BrowserDefinition.cs