Code:
/ FX-1434 / FX-1434 / 1.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
- CodeValidator.cs
- MenuTracker.cs
- SystemIPAddressInformation.cs
- ConstructorBuilder.cs
- PrintDialog.cs
- NotifyInputEventArgs.cs
- XmlBufferReader.cs
- X509Certificate2.cs
- BufferModesCollection.cs
- HeaderedContentControl.cs
- AdCreatedEventArgs.cs
- DebugHandleTracker.cs
- CreateUserWizard.cs
- COM2ExtendedUITypeEditor.cs
- InkPresenterAutomationPeer.cs
- ChannelManager.cs
- CriticalFinalizerObject.cs
- DropShadowBitmapEffect.cs
- ActiveDocumentEvent.cs
- HtmlInputButton.cs
- X509ChainPolicy.cs
- ToolStripDropDownItem.cs
- Renderer.cs
- SimpleNameService.cs
- StagingAreaInputItem.cs
- RegisteredHiddenField.cs
- UdpRetransmissionSettings.cs
- storepermission.cs
- HttpSessionStateBase.cs
- ValidatingReaderNodeData.cs
- DefaultEventAttribute.cs
- DecoderNLS.cs
- SubclassTypeValidator.cs
- SharedRuntimeState.cs
- Classification.cs
- CatalogZoneBase.cs
- XslException.cs
- LogicalExpr.cs
- GridViewAutomationPeer.cs
- InternalConfigHost.cs
- ToolConsole.cs
- BitmapEffectGroup.cs
- ListViewGroupConverter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- PolicyLevel.cs
- rsa.cs
- ConstraintCollection.cs
- PrintPageEvent.cs
- HMACSHA256.cs
- securestring.cs
- BypassElement.cs
- FontEmbeddingManager.cs
- TimeSpanValidator.cs
- TiffBitmapDecoder.cs
- OleDbFactory.cs
- CalendarDay.cs
- RectAnimation.cs
- ExpressionVisitor.cs
- TcpProcessProtocolHandler.cs
- ExpandCollapseProviderWrapper.cs
- elementinformation.cs
- BuildResult.cs
- DataServiceHostFactory.cs
- ConstraintStruct.cs
- DragAssistanceManager.cs
- OSFeature.cs
- RsaKeyGen.cs
- ConfigurationException.cs
- SchemaElementLookUpTable.cs
- CollectionViewGroup.cs
- FixedSchema.cs
- HtmlGenericControl.cs
- PointLight.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- MonthCalendar.cs
- AssociationProvider.cs
- GridViewRow.cs
- Fault.cs
- LinqDataSourceDisposeEventArgs.cs
- ReadOnlyCollectionBuilder.cs
- PtsCache.cs
- ListViewContainer.cs
- DataSourceHelper.cs
- DisposableCollectionWrapper.cs
- XamlClipboardData.cs
- CopyOnWriteList.cs
- COAUTHINFO.cs
- EntityDataSourceState.cs
- MembershipUser.cs
- ConfigXmlSignificantWhitespace.cs
- ELinqQueryState.cs
- HwndSource.cs
- ConnectionProviderAttribute.cs
- Point.cs
- ScriptIgnoreAttribute.cs
- ProviderSettingsCollection.cs
- DataTrigger.cs
- FormView.cs
- CompModSwitches.cs
- ResXDataNode.cs