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
- DefaultHttpHandler.cs
- DataGridViewColumn.cs
- DBParameter.cs
- GridViewColumnCollection.cs
- DBAsyncResult.cs
- BackgroundWorker.cs
- SchemaCollectionCompiler.cs
- DelegatingChannelListener.cs
- OrderPreservingSpoolingTask.cs
- AdPostCacheSubstitution.cs
- SQLDouble.cs
- AssemblyAssociatedContentFileAttribute.cs
- ParenthesizePropertyNameAttribute.cs
- HandleExceptionArgs.cs
- SQLByte.cs
- ISessionStateStore.cs
- HandoffBehavior.cs
- ClientTargetSection.cs
- _LocalDataStore.cs
- SoapCodeExporter.cs
- UIElementIsland.cs
- RoleManagerEventArgs.cs
- VerticalAlignConverter.cs
- SigningProgress.cs
- HMACMD5.cs
- JavaScriptString.cs
- __ComObject.cs
- _SslSessionsCache.cs
- RectangleGeometry.cs
- KeyFrames.cs
- XmlCharacterData.cs
- SQLCharsStorage.cs
- HtmlAnchor.cs
- ItemContainerGenerator.cs
- UrlPath.cs
- EditorZoneAutoFormat.cs
- TypedElement.cs
- IxmlLineInfo.cs
- SeverityFilter.cs
- ModuleConfigurationInfo.cs
- HtmlForm.cs
- SystemKeyConverter.cs
- autovalidator.cs
- ImagingCache.cs
- FrameworkElementFactoryMarkupObject.cs
- UnmanagedMemoryStream.cs
- ListBindableAttribute.cs
- RegexMatch.cs
- PathData.cs
- GiveFeedbackEventArgs.cs
- DesignerSerializationOptionsAttribute.cs
- TaiwanCalendar.cs
- LineUtil.cs
- OleDbDataAdapter.cs
- Privilege.cs
- PanelStyle.cs
- MessageBox.cs
- RuntimeVariableList.cs
- StorageBasedPackageProperties.cs
- XmlCountingReader.cs
- ClickablePoint.cs
- ConnectionDemuxer.cs
- HwndSourceKeyboardInputSite.cs
- AccessKeyManager.cs
- CustomAttribute.cs
- StyleXamlTreeBuilder.cs
- EnterpriseServicesHelper.cs
- IisHelper.cs
- SafeRightsManagementPubHandle.cs
- SinglePhaseEnlistment.cs
- PerspectiveCamera.cs
- FamilyTypefaceCollection.cs
- HitTestResult.cs
- Tile.cs
- _Events.cs
- AppDomainFactory.cs
- FunctionDescription.cs
- IBuiltInEvidence.cs
- DateTimeOffsetAdapter.cs
- ServiceNotStartedException.cs
- XmlName.cs
- ParameterRetriever.cs
- WebPartHeaderCloseVerb.cs
- DocumentReferenceCollection.cs
- ListenerConnectionDemuxer.cs
- ProbeDuplex11AsyncResult.cs
- NativeObjectSecurity.cs
- TypedReference.cs
- ToolStripContainer.cs
- AuthenticatedStream.cs
- BooleanAnimationUsingKeyFrames.cs
- SecUtil.cs
- ActivityScheduledQuery.cs
- CngUIPolicy.cs
- RuntimeResourceSet.cs
- XsdCachingReader.cs
- AddingNewEventArgs.cs
- WindowsMenu.cs
- GrabHandleGlyph.cs
- SHA256.cs