Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewTopRowAccessibleObject.cs
- XmlDocument.cs
- ObjectDisposedException.cs
- Size.cs
- BitmapPalettes.cs
- PropertyInformationCollection.cs
- ListViewEditEventArgs.cs
- DesignerTransactionCloseEvent.cs
- HtmlTextArea.cs
- MSG.cs
- SoapReflectionImporter.cs
- ParameterInfo.cs
- Point.cs
- MediaEntryAttribute.cs
- CommonRemoteMemoryBlock.cs
- MatrixCamera.cs
- EventDescriptorCollection.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- Int16Converter.cs
- TableLayoutRowStyleCollection.cs
- SamlEvidence.cs
- FontWeight.cs
- HttpListenerException.cs
- OdbcCommandBuilder.cs
- Decimal.cs
- IDispatchConstantAttribute.cs
- X509Certificate2.cs
- PrintEvent.cs
- WmlCalendarAdapter.cs
- CodeExpressionCollection.cs
- StyleCollectionEditor.cs
- ToolStripComboBox.cs
- FileDialogCustomPlacesCollection.cs
- KoreanLunisolarCalendar.cs
- MsmqIntegrationMessageProperty.cs
- SqlBulkCopy.cs
- MenuBase.cs
- OptimizedTemplateContentHelper.cs
- TdsRecordBufferSetter.cs
- InkCanvasFeedbackAdorner.cs
- BindableTemplateBuilder.cs
- DesignerDataColumn.cs
- __ComObject.cs
- WorkflowPageSetupDialog.cs
- CookieProtection.cs
- _SSPISessionCache.cs
- Model3DGroup.cs
- TextElementCollection.cs
- NestedContainer.cs
- SizeChangedInfo.cs
- XamlSerializer.cs
- Object.cs
- CryptoStream.cs
- XamlSerializer.cs
- AssemblyNameEqualityComparer.cs
- ToolboxItemAttribute.cs
- RequestChannel.cs
- Trigger.cs
- EntityDataSourceView.cs
- SqlTypesSchemaImporter.cs
- ProjectionPlanCompiler.cs
- VBCodeProvider.cs
- DataGridViewCellCancelEventArgs.cs
- StrokeIntersection.cs
- ProfileBuildProvider.cs
- PropertyPathConverter.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ActivityLocationReferenceEnvironment.cs
- MasterPageBuildProvider.cs
- PopupEventArgs.cs
- COM2EnumConverter.cs
- FrameSecurityDescriptor.cs
- HijriCalendar.cs
- SecurityTokenAuthenticator.cs
- UserPersonalizationStateInfo.cs
- CodeDirectoryCompiler.cs
- MultipartContentParser.cs
- DPTypeDescriptorContext.cs
- FastEncoder.cs
- EventProperty.cs
- DurableInstancingOptions.cs
- LinkGrep.cs
- Crypto.cs
- Wildcard.cs
- DataContractSerializerMessageContractImporter.cs
- BaseEntityWrapper.cs
- FieldAccessException.cs
- SchemaEntity.cs
- GradientStopCollection.cs
- DescriptionAttribute.cs
- ThreadStaticAttribute.cs
- StoreItemCollection.cs
- SmtpNtlmAuthenticationModule.cs
- FieldToken.cs
- ButtonChrome.cs
- RecommendedAsConfigurableAttribute.cs
- HttpRequest.cs
- Empty.cs
- MarkupExtensionParser.cs
- SafeCryptoHandles.cs