Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- RequestCachingSection.cs
- FixedSOMFixedBlock.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SpeechRecognitionEngine.cs
- WebExceptionStatus.cs
- columnmapkeybuilder.cs
- PageAdapter.cs
- ProxyWebPartManager.cs
- ParsedRoute.cs
- Pts.cs
- LocationReferenceValue.cs
- SyndicationFeedFormatter.cs
- CroppedBitmap.cs
- TransactionProtocol.cs
- __ConsoleStream.cs
- SchemaDeclBase.cs
- UniqueEventHelper.cs
- TextBox.cs
- PageThemeBuildProvider.cs
- CacheDict.cs
- ConstraintEnumerator.cs
- InputDevice.cs
- ColorAnimationBase.cs
- StylusOverProperty.cs
- DocumentOrderComparer.cs
- ContainerUtilities.cs
- LinqDataSourceDisposeEventArgs.cs
- GeometryValueSerializer.cs
- SolidColorBrush.cs
- ErrorHandler.cs
- CommandHelper.cs
- SelectionGlyph.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- Context.cs
- PeerPresenceInfo.cs
- TextFindEngine.cs
- Span.cs
- RelationshipNavigation.cs
- GridItem.cs
- Point3D.cs
- RijndaelManagedTransform.cs
- RelationshipEnd.cs
- Stylesheet.cs
- Vector3DAnimation.cs
- CodeNamespace.cs
- MatchingStyle.cs
- CompilationLock.cs
- ConfigurationException.cs
- WorkflowApplicationUnloadedException.cs
- Knowncolors.cs
- XPathNodeInfoAtom.cs
- SigningCredentials.cs
- NegotiationTokenAuthenticatorStateCache.cs
- PenContexts.cs
- CodeSnippetExpression.cs
- AnnotationResource.cs
- TypeDescriptionProvider.cs
- CacheMode.cs
- FlowDocumentFormatter.cs
- BeginStoryboard.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ExclusiveTcpListener.cs
- WebConfigurationHostFileChange.cs
- RegexCompilationInfo.cs
- TreeNodeSelectionProcessor.cs
- Substitution.cs
- XmlHierarchicalEnumerable.cs
- SourceElementsCollection.cs
- WebServiceData.cs
- StrokeSerializer.cs
- TimeSpanValidatorAttribute.cs
- WindowsServiceCredential.cs
- HierarchicalDataBoundControlAdapter.cs
- _HTTPDateParse.cs
- ReachDocumentSequenceSerializer.cs
- KeyedQueue.cs
- AnnotationResourceChangedEventArgs.cs
- CaretElement.cs
- DataRowComparer.cs
- InvalidFilterCriteriaException.cs
- SafeMILHandle.cs
- ModelTypeConverter.cs
- Hex.cs
- PeerApplication.cs
- FrugalMap.cs
- ConnectionManager.cs
- ErrorHandlingAcceptor.cs
- PathFigureCollection.cs
- VersionedStream.cs
- Int64Converter.cs
- ConfigXmlElement.cs
- TabletDeviceInfo.cs
- RoleService.cs
- SQLStringStorage.cs
- BamlLocalizer.cs
- LongTypeConverter.cs
- DataGridViewSelectedCellCollection.cs
- NetPeerTcpBindingCollectionElement.cs
- BooleanExpr.cs
- FrameSecurityDescriptor.cs