Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GeneralTransform.cs
- loginstatus.cs
- rsa.cs
- FormatConvertedBitmap.cs
- Control.cs
- FloatMinMaxAggregationOperator.cs
- ToolStripItemEventArgs.cs
- StyleHelper.cs
- VBIdentifierNameEditor.cs
- SecurityPolicySection.cs
- GuidelineCollection.cs
- StatusBarPanelClickEvent.cs
- XsltInput.cs
- MULTI_QI.cs
- Timer.cs
- ToReply.cs
- SqlNotificationRequest.cs
- HostExecutionContextManager.cs
- Script.cs
- MultitargetingHelpers.cs
- SoapRpcServiceAttribute.cs
- SqlRecordBuffer.cs
- RangeValueProviderWrapper.cs
- ProtocolViolationException.cs
- ToggleButtonAutomationPeer.cs
- BaseDataListActionList.cs
- EUCJPEncoding.cs
- ParamArrayAttribute.cs
- SplineQuaternionKeyFrame.cs
- SqlBulkCopyColumnMapping.cs
- MemberCollection.cs
- SafeHGlobalHandleCritical.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- WsatStrings.cs
- RawStylusSystemGestureInputReport.cs
- CompModSwitches.cs
- PropertyPathWorker.cs
- ConfigurationManagerInternalFactory.cs
- SafeLocalMemHandle.cs
- XomlCompilerError.cs
- ApplicationActivator.cs
- ContentFilePart.cs
- SHA512Managed.cs
- CheckBox.cs
- MessageSmuggler.cs
- PermissionSetTriple.cs
- PathFigureCollection.cs
- HttpBrowserCapabilitiesBase.cs
- Constant.cs
- TemplateKeyConverter.cs
- TypeToken.cs
- ImportContext.cs
- PlanCompiler.cs
- LexicalChunk.cs
- CodeMemberEvent.cs
- ActivityWithResultConverter.cs
- ScopelessEnumAttribute.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- MobileComponentEditorPage.cs
- formatter.cs
- PrtCap_Builder.cs
- MsdtcClusterUtils.cs
- PagedDataSource.cs
- IImplicitResourceProvider.cs
- ExtractCollection.cs
- MapPathBasedVirtualPathProvider.cs
- StyleSheetRefUrlEditor.cs
- InstanceDescriptor.cs
- Variable.cs
- AccessedThroughPropertyAttribute.cs
- TCEAdapterGenerator.cs
- FontInfo.cs
- CfgSemanticTag.cs
- MediaContextNotificationWindow.cs
- ScrollChrome.cs
- SourceElementsCollection.cs
- DataSourceHelper.cs
- FlowDocumentView.cs
- WasAdminWrapper.cs
- SmtpCommands.cs
- BasicKeyConstraint.cs
- ObjectDataSourceMethodEventArgs.cs
- NativeMethods.cs
- XmlEnumAttribute.cs
- DynamicControlParameter.cs
- InkCanvasSelectionAdorner.cs
- WaitHandleCannotBeOpenedException.cs
- CommandConverter.cs
- DBAsyncResult.cs
- ElementAction.cs
- SqlInternalConnection.cs
- Win32.cs
- EndpointInfo.cs
- CodeGroup.cs
- ArrayExtension.cs
- EntityDataSourceWrapper.cs
- Int32Converter.cs
- IdleTimeoutMonitor.cs
- PropertyBuilder.cs
- TextServicesCompartmentEventSink.cs