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
- AxisAngleRotation3D.cs
- EventLogPermissionEntryCollection.cs
- TextSerializer.cs
- ConfigurationManagerInternalFactory.cs
- UrlPropertyAttribute.cs
- ItemCheckEvent.cs
- StateRuntime.cs
- Profiler.cs
- XmlNamedNodeMap.cs
- ErrorHandler.cs
- SystemUdpStatistics.cs
- TTSVoice.cs
- Visual3DCollection.cs
- DispatcherHookEventArgs.cs
- BaseParaClient.cs
- TemplateControlCodeDomTreeGenerator.cs
- CellQuery.cs
- SyndicationSerializer.cs
- ISFTagAndGuidCache.cs
- DispatchWrapper.cs
- BufferBuilder.cs
- PerformanceCounterPermissionEntry.cs
- DomainConstraint.cs
- CompilationUtil.cs
- WebPartTracker.cs
- DesignerView.Commands.cs
- AttributeUsageAttribute.cs
- PrimitiveDataContract.cs
- SpotLight.cs
- CopyCodeAction.cs
- CodeDesigner.cs
- SQLByteStorage.cs
- DataDocumentXPathNavigator.cs
- StoragePropertyMapping.cs
- DiscoveryClientElement.cs
- ContextInformation.cs
- RegexCode.cs
- DataGridViewHeaderCell.cs
- Message.cs
- UIElementCollection.cs
- Padding.cs
- MembershipValidatePasswordEventArgs.cs
- OdbcHandle.cs
- ProcessHostConfigUtils.cs
- Attributes.cs
- ExtendedPropertyDescriptor.cs
- KeyboardDevice.cs
- LogManagementAsyncResult.cs
- AsyncStreamReader.cs
- SafeHandles.cs
- MruCache.cs
- DataRecordInfo.cs
- ZipPackage.cs
- ObjectStateManagerMetadata.cs
- XmlSchemaGroupRef.cs
- log.cs
- SendOperation.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- XamlTemplateSerializer.cs
- ExpressionEditorSheet.cs
- MonitorWrapper.cs
- XmlSchemaComplexContent.cs
- EntityCommandDefinition.cs
- FrameworkContentElementAutomationPeer.cs
- StringReader.cs
- SchemaContext.cs
- DataGridTablesFactory.cs
- ConnectionConsumerAttribute.cs
- WebBrowserSiteBase.cs
- SetterBaseCollection.cs
- ContentElement.cs
- DataGridViewAccessibleObject.cs
- Property.cs
- DbMetaDataColumnNames.cs
- WebPartUserCapability.cs
- DBCommandBuilder.cs
- ByteRangeDownloader.cs
- EventSinkHelperWriter.cs
- EffectiveValueEntry.cs
- Base64Encoder.cs
- BitConverter.cs
- IPipelineRuntime.cs
- SQLSingle.cs
- glyphs.cs
- DataGridViewControlCollection.cs
- ColorAnimation.cs
- MultiBinding.cs
- SecurityCriticalDataForSet.cs
- PlacementWorkspace.cs
- XmlReaderSettings.cs
- SerializationSectionGroup.cs
- StringBuilder.cs
- util.cs
- TransformPattern.cs
- ColorMap.cs
- TTSEngineProxy.cs
- PointCollectionConverter.cs
- OleDbPropertySetGuid.cs
- DrawListViewSubItemEventArgs.cs
- WebEventCodes.cs