Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ExpressionBuilderContext.cs
- MemberDescriptor.cs
- TreeNodeClickEventArgs.cs
- TraceEventCache.cs
- ResourcesBuildProvider.cs
- OleCmdHelper.cs
- TdsRecordBufferSetter.cs
- ProxyManager.cs
- OutputCacheSettings.cs
- AspNetSynchronizationContext.cs
- ApplicationFileParser.cs
- Utils.cs
- odbcmetadatacollectionnames.cs
- ActionMismatchAddressingException.cs
- CompositeDataBoundControl.cs
- SessionEndingCancelEventArgs.cs
- RepeatButton.cs
- UTF7Encoding.cs
- HttpsTransportBindingElement.cs
- ScrollProviderWrapper.cs
- DelegateSerializationHolder.cs
- PageStatePersister.cs
- UnsafeNativeMethods.cs
- ObjectItemNoOpAssemblyLoader.cs
- Timer.cs
- DockingAttribute.cs
- WebPartConnectVerb.cs
- DiscoveryVersion.cs
- Fx.cs
- DeleteMemberBinder.cs
- CornerRadiusConverter.cs
- NamespaceDecl.cs
- ValueHandle.cs
- AssemblyCollection.cs
- RawContentTypeMapper.cs
- NonVisualControlAttribute.cs
- SoapAttributeOverrides.cs
- TrackingParticipant.cs
- DependencyObjectType.cs
- objectresult_tresulttype.cs
- MatrixCamera.cs
- IdentifierCollection.cs
- BuildDependencySet.cs
- XmlTextAttribute.cs
- TraceAsyncResult.cs
- InputGestureCollection.cs
- XmlSchemaSimpleTypeUnion.cs
- EntityDataSourceWizardForm.cs
- SocketInformation.cs
- SqlUDTStorage.cs
- PermissionSetTriple.cs
- Hashtable.cs
- InvalidateEvent.cs
- WindowsUpDown.cs
- DesignerActionVerbItem.cs
- ListBindableAttribute.cs
- InputManager.cs
- EncoderBestFitFallback.cs
- ResourceContainer.cs
- ExpressionBuilderCollection.cs
- PageCache.cs
- MultiDataTrigger.cs
- DocumentDesigner.cs
- RenderDataDrawingContext.cs
- AQNBuilder.cs
- ToolStripPanelCell.cs
- ColumnReorderedEventArgs.cs
- Utility.cs
- CodeExporter.cs
- PopupRootAutomationPeer.cs
- CuspData.cs
- PhysicalOps.cs
- DbUpdateCommandTree.cs
- Aggregates.cs
- LayoutUtils.cs
- EventArgs.cs
- LogManagementAsyncResult.cs
- ILGenerator.cs
- DoubleConverter.cs
- ClientScriptManager.cs
- HtmlInputControl.cs
- _CacheStreams.cs
- OleDragDropHandler.cs
- CellIdBoolean.cs
- QilIterator.cs
- Activator.cs
- COM2ICategorizePropertiesHandler.cs
- TranslateTransform.cs
- ControlCachePolicy.cs
- DataGridViewCheckBoxCell.cs
- WebBrowserDocumentCompletedEventHandler.cs
- StorageMappingFragment.cs
- DataPagerCommandEventArgs.cs
- TransformedBitmap.cs
- AppDomainManager.cs
- Span.cs
- HtmlControl.cs
- ProcessManager.cs
- JsonEnumDataContract.cs
- NativeRightsManagementAPIsStructures.cs