Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / ValueType.cs / 1 / ValueType.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: ValueType ** ** ** Purpose: Base class for all value classes. ** ** ===========================================================*/ namespace System { using System; using System.Reflection; using System.Runtime.CompilerServices; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public abstract class ValueType { public override bool Equals (Object obj) { BCLDebug.Perf(false, "ValueType::Equals is not fast. "+this.GetType().FullName+" should override Equals(Object)"); if (null==obj) { return false; } RuntimeType thisType = (RuntimeType)this.GetType(); RuntimeType thatType = (RuntimeType)obj.GetType(); if (thatType!=thisType) { return false; } Object thisObj = (Object)this; Object thisResult, thatResult; // if there are no GC references in this object we can avoid reflection // and do a fast memcmp if (CanCompareBits(this)) return FastEqualsCheck(thisObj, obj); FieldInfo[] thisFields = thisType.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); for (int i=0; i
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BinaryObjectInfo.cs
- SoapMessage.cs
- EntityParameter.cs
- WebPartEditorApplyVerb.cs
- WebHttpBinding.cs
- IResourceProvider.cs
- SimpleBitVector32.cs
- DataGridViewCellStyle.cs
- AccessibilityHelperForXpWin2k3.cs
- StateMachineSubscription.cs
- XmlDesigner.cs
- CodeConstructor.cs
- IndentedTextWriter.cs
- TypeSystemHelpers.cs
- ProxyWebPart.cs
- OdbcConnectionPoolProviderInfo.cs
- CollectionViewSource.cs
- AlternateView.cs
- DataRowView.cs
- ColumnProvider.cs
- OracleString.cs
- QilIterator.cs
- nulltextnavigator.cs
- PropertyIDSet.cs
- SchemaEntity.cs
- PageContentCollection.cs
- updateconfighost.cs
- ExtensionQuery.cs
- ThousandthOfEmRealDoubles.cs
- ProviderConnectionPoint.cs
- PrimitiveRenderer.cs
- SqlBooleanizer.cs
- BigInt.cs
- StreamReader.cs
- ComponentResourceManager.cs
- SwitchLevelAttribute.cs
- MeasureData.cs
- DockPatternIdentifiers.cs
- ColumnTypeConverter.cs
- MemberRelationshipService.cs
- TypedDataSourceCodeGenerator.cs
- BitStack.cs
- GetWinFXPath.cs
- DiagnosticsConfigurationHandler.cs
- List.cs
- ListenerElementsCollection.cs
- PrinterSettings.cs
- DataServiceException.cs
- DocumentPageViewAutomationPeer.cs
- ProxyFragment.cs
- PopOutPanel.cs
- DPAPIProtectedConfigurationProvider.cs
- PreviewPageInfo.cs
- ToolStripMenuItem.cs
- BuildProviderAppliesToAttribute.cs
- XDRSchema.cs
- DependencyPropertyConverter.cs
- SamlSecurityToken.cs
- Boolean.cs
- ProviderCommandInfoUtils.cs
- TagPrefixAttribute.cs
- mediaeventargs.cs
- __Filters.cs
- XmlSchemaAnnotated.cs
- querybuilder.cs
- StylusPointProperties.cs
- SqlBulkCopyColumnMappingCollection.cs
- PackageStore.cs
- XmlSiteMapProvider.cs
- MergeExecutor.cs
- TextEffect.cs
- ImageClickEventArgs.cs
- ExecutedRoutedEventArgs.cs
- BindingParameterCollection.cs
- ImageDrawing.cs
- DataTableReaderListener.cs
- LabelEditEvent.cs
- OleDbError.cs
- UIElementAutomationPeer.cs
- DefaultValueConverter.cs
- DeviceContext2.cs
- GridViewUpdatedEventArgs.cs
- _DomainName.cs
- InstalledFontCollection.cs
- ResizeBehavior.cs
- Label.cs
- PeerEndPoint.cs
- AssemblyHash.cs
- Internal.cs
- AffineTransform3D.cs
- Misc.cs
- Base64Decoder.cs
- ButtonBase.cs
- AuthorizationSection.cs
- ToolBarPanel.cs
- DataGridViewCellParsingEventArgs.cs
- PreviewKeyDownEventArgs.cs
- SafeRegistryKey.cs
- SuspendDesigner.cs
- HostedTransportConfigurationBase.cs