Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / PropertyToken.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyMapper.cs
- MasterPageParser.cs
- ProcessModelInfo.cs
- HttpResponse.cs
- DataStreams.cs
- Lasso.cs
- DetailsViewActionList.cs
- RenderDataDrawingContext.cs
- TriggerActionCollection.cs
- IBuiltInEvidence.cs
- OdbcReferenceCollection.cs
- Helper.cs
- TransformValueSerializer.cs
- HtmlSelect.cs
- EmptyReadOnlyDictionaryInternal.cs
- CopyCodeAction.cs
- CombinedGeometry.cs
- CuspData.cs
- ConstraintStruct.cs
- Internal.cs
- HotSpotCollectionEditor.cs
- CodeRemoveEventStatement.cs
- DesignerActionPropertyItem.cs
- AdvancedBindingEditor.cs
- RenderOptions.cs
- DataGridAutoFormatDialog.cs
- HorizontalAlignConverter.cs
- GetCryptoTransformRequest.cs
- MenuAutomationPeer.cs
- OdbcEnvironment.cs
- GridLength.cs
- Accessors.cs
- WebReferencesBuildProvider.cs
- CustomError.cs
- ThreadAbortException.cs
- Effect.cs
- BasicExpandProvider.cs
- ViewBase.cs
- WebPartTracker.cs
- SystemIcmpV4Statistics.cs
- PlatformNotSupportedException.cs
- HtmlTable.cs
- CopyAction.cs
- StyleCollection.cs
- CharEnumerator.cs
- SharedRuntimeState.cs
- ProcessThread.cs
- SiteMapNode.cs
- ChangePassword.cs
- HandlerFactoryWrapper.cs
- ExternalCalls.cs
- DrawingAttributes.cs
- StringFunctions.cs
- ConfigurationManager.cs
- ControlParser.cs
- Msec.cs
- Selection.cs
- ConstraintConverter.cs
- MembershipUser.cs
- Style.cs
- WebBrowserHelper.cs
- SQLDecimal.cs
- NativeMethods.cs
- TabControl.cs
- GradientStop.cs
- EventSetter.cs
- Table.cs
- ControlAdapter.cs
- OneOfElement.cs
- SupportsEventValidationAttribute.cs
- PageCodeDomTreeGenerator.cs
- KeyFrames.cs
- Expressions.cs
- EntityDataSourceWizardForm.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- DataColumnPropertyDescriptor.cs
- UnaryQueryOperator.cs
- HttpStaticObjectsCollectionWrapper.cs
- _LocalDataStoreMgr.cs
- ETagAttribute.cs
- VolatileEnlistmentState.cs
- AxHost.cs
- StringFreezingAttribute.cs
- _CommandStream.cs
- HttpDebugHandler.cs
- TranslateTransform.cs
- FloatUtil.cs
- PrinterResolution.cs
- VisualStateChangedEventArgs.cs
- SchemaCollectionCompiler.cs
- SimpleWorkerRequest.cs
- NullRuntimeConfig.cs
- _NegoStream.cs
- MapPathBasedVirtualPathProvider.cs
- HtmlTableRow.cs
- BuildProviderCollection.cs
- KoreanLunisolarCalendar.cs
- HttpClientCertificate.cs
- XmlElementAttribute.cs
- PointValueSerializer.cs