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
- DomNameTable.cs
- Adorner.cs
- CalendarBlackoutDatesCollection.cs
- Win32.cs
- SqlTrackingService.cs
- DesignTimeParseData.cs
- FormsAuthenticationTicket.cs
- ObjectDataSourceChooseTypePanel.cs
- DataGridViewSelectedCellCollection.cs
- XmlDigitalSignatureProcessor.cs
- NetworkCredential.cs
- RedirectionProxy.cs
- Facet.cs
- PasswordBox.cs
- SQLBinaryStorage.cs
- RegionData.cs
- RelationshipSet.cs
- HtmlInputImage.cs
- StorageAssociationTypeMapping.cs
- SourceLineInfo.cs
- UnsafeNativeMethods.cs
- StructuredType.cs
- FixedSOMElement.cs
- OracleConnectionString.cs
- Math.cs
- ResetableIterator.cs
- ConfigurationSectionCollection.cs
- WebResponse.cs
- CssClassPropertyAttribute.cs
- TextRangeEdit.cs
- RuleInfoComparer.cs
- Dispatcher.cs
- ConfigurationValues.cs
- OLEDB_Enum.cs
- Matrix3D.cs
- StringOutput.cs
- UnauthorizedAccessException.cs
- SqlStatistics.cs
- DbConnectionHelper.cs
- Matrix.cs
- NameObjectCollectionBase.cs
- SqlTrackingService.cs
- ThreadStateException.cs
- TextEditorTyping.cs
- ImageClickEventArgs.cs
- EdgeModeValidation.cs
- SafePipeHandle.cs
- FloaterParaClient.cs
- TypeSystem.cs
- ToolStripItemEventArgs.cs
- DPCustomTypeDescriptor.cs
- MenuItemBindingCollection.cs
- PlatformCulture.cs
- RawStylusInputReport.cs
- RadioButton.cs
- UnsafeNativeMethods.cs
- FastPropertyAccessor.cs
- DbParameterHelper.cs
- TypeConstant.cs
- CopyAction.cs
- Comparer.cs
- DataGridAutomationPeer.cs
- SByteStorage.cs
- ErrorLog.cs
- DataGridParentRows.cs
- ProtocolsConfigurationHandler.cs
- TextInfo.cs
- ContextMenuStrip.cs
- MouseEvent.cs
- String.cs
- ProcessModuleCollection.cs
- QilInvokeLateBound.cs
- FlowPosition.cs
- Exception.cs
- ImageClickEventArgs.cs
- CurrentChangingEventArgs.cs
- BindingRestrictions.cs
- TimeoutConverter.cs
- MenuStrip.cs
- FusionWrap.cs
- IntPtr.cs
- ArglessEventHandlerProxy.cs
- ResourceDescriptionAttribute.cs
- FileUtil.cs
- NetPipeSectionData.cs
- HtmlTableRow.cs
- Rights.cs
- SizeAnimationBase.cs
- FreezableDefaultValueFactory.cs
- ColumnWidthChangedEvent.cs
- FieldTemplateUserControl.cs
- GatewayDefinition.cs
- DataSourceSelectArguments.cs
- SplineQuaternionKeyFrame.cs
- WebServiceTypeData.cs
- MsmqProcessProtocolHandler.cs
- ComboBoxDesigner.cs
- HttpApplication.cs
- EventHandlersStore.cs
- GlobalAllocSafeHandle.cs