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
- TreePrinter.cs
- RegistryPermission.cs
- ProgressBarAutomationPeer.cs
- Point4DValueSerializer.cs
- ColumnPropertiesGroup.cs
- SqlBulkCopy.cs
- _FtpControlStream.cs
- BamlLocalizableResourceKey.cs
- GridViewRowCollection.cs
- propertyentry.cs
- ModelItemCollection.cs
- JsonFormatGeneratorStatics.cs
- EditorZoneBase.cs
- RegistryDataKey.cs
- XmlQueryStaticData.cs
- MergablePropertyAttribute.cs
- SystemResources.cs
- DataGridViewButtonCell.cs
- PageRanges.cs
- PasswordBox.cs
- TimeEnumHelper.cs
- SqlLiftWhereClauses.cs
- ObfuscateAssemblyAttribute.cs
- _SslState.cs
- Point4DConverter.cs
- SmiRequestExecutor.cs
- CodeDirectiveCollection.cs
- OutOfProcStateClientManager.cs
- CookieParameter.cs
- ResXResourceReader.cs
- Ticks.cs
- PreviewPrintController.cs
- InstanceDescriptor.cs
- ToolStripContentPanelRenderEventArgs.cs
- DescendentsWalkerBase.cs
- WorkflowViewManager.cs
- ToolStripPanelRenderEventArgs.cs
- bidPrivateBase.cs
- WmiEventSink.cs
- DataServiceHostFactory.cs
- GridViewUpdateEventArgs.cs
- ChannelEndpointElement.cs
- CheckBoxField.cs
- ImportedNamespaceContextItem.cs
- PathParser.cs
- CodeEventReferenceExpression.cs
- SetStoryboardSpeedRatio.cs
- AppDomainFactory.cs
- activationcontext.cs
- PeerToPeerException.cs
- AuthenticationServiceManager.cs
- DesignTimeData.cs
- InputBindingCollection.cs
- AlternateViewCollection.cs
- HtmlInputHidden.cs
- ErrorRuntimeConfig.cs
- SourceFileInfo.cs
- ExtensionSimplifierMarkupObject.cs
- InternalControlCollection.cs
- RenderOptions.cs
- EmitterCache.cs
- TypeConstant.cs
- WindowsUpDown.cs
- XPathMessageFilterTable.cs
- mediaeventargs.cs
- ClientCultureInfo.cs
- SmtpFailedRecipientsException.cs
- MenuItemStyleCollection.cs
- SwitchAttribute.cs
- ComponentResourceKeyConverter.cs
- LoginCancelEventArgs.cs
- ObjectMemberMapping.cs
- ViewStateException.cs
- DiagnosticTraceSchemas.cs
- GridLength.cs
- EntityDataSourceDesigner.cs
- CustomCategoryAttribute.cs
- OperationGenerator.cs
- BinaryFormatterWriter.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TraceContextEventArgs.cs
- HttpRequest.cs
- ProviderIncompatibleException.cs
- mediaeventshelper.cs
- AffineTransform3D.cs
- TraceUtils.cs
- EventPrivateKey.cs
- ConstrainedDataObject.cs
- NullableLongSumAggregationOperator.cs
- Path.cs
- Evidence.cs
- ReflectionUtil.cs
- SafeNativeMethods.cs
- ObjectTag.cs
- SqlDataSourceView.cs
- ResXDataNode.cs
- RelationshipSet.cs
- BaseCAMarshaler.cs
- SecurityTokenTypes.cs
- ReflectionTypeLoadException.cs