Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / ParseNumbers.cs / 1 / ParseNumbers.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: ParseNumbers ** ** ** Purpose: Methods for Parsing numbers and Strings. ** All methods are implemented in native. ** ** ===========================================================*/ namespace System { //This class contains only static members and does not need to be serializable. using System; using System.Runtime.CompilerServices; internal static class ParseNumbers { internal const int PrintAsI1=0x40; internal const int PrintAsI2=0x80; internal const int PrintAsI4=0x100; internal const int TreatAsUnsigned=0x200; internal const int TreatAsI1=0x400; internal const int TreatAsI2=0x800; internal const int IsTight=0x1000; internal const int NoSpace=0x2000; // // // NATIVE METHODS // For comments on these methods please see $\src\vm\COMUtilNative.cpp // public unsafe static long StringToLong(System.String s, int radix, int flags) { return StringToLong(s,radix,flags, null); } [MethodImplAttribute(MethodImplOptions.InternalCall)] public unsafe extern static long StringToLong(System.String s, int radix, int flags, int* currPos); public unsafe static long StringToLong(System.String s, int radix, int flags, ref int currPos) { fixed(int * ppos = &currPos) { return StringToLong( s, radix, flags, ppos); } } public unsafe static int StringToInt(System.String s, int radix, int flags) { return StringToInt(s,radix,flags, null); } [MethodImplAttribute(MethodImplOptions.InternalCall)] public unsafe extern static int StringToInt(System.String s, int radix, int flags, int* currPos); public unsafe static int StringToInt(System.String s, int radix, int flags, ref int currPos) { fixed(int * ppos = &currPos) { return StringToInt( s, radix, flags, ppos); } } [MethodImplAttribute(MethodImplOptions.InternalCall)] public extern static String IntToString(int l, int radix, int width, char paddingChar, int flags); [MethodImplAttribute(MethodImplOptions.InternalCall)] public extern static String LongToString(long l, int radix, int width, char paddingChar, int flags); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationInfo.cs
- DetailsViewUpdatedEventArgs.cs
- DependencyObjectType.cs
- NetMsmqSecurityElement.cs
- ProfessionalColors.cs
- counter.cs
- FactoryId.cs
- ConsoleKeyInfo.cs
- StreamReader.cs
- ToolStripContainer.cs
- Attributes.cs
- SqlDataSourceQueryEditor.cs
- Typography.cs
- MetaModel.cs
- WindowsScrollBar.cs
- ProxyWebPart.cs
- ContentDesigner.cs
- Material.cs
- WebPartCatalogCloseVerb.cs
- SqlProviderUtilities.cs
- DefaultMemberAttribute.cs
- RelationHandler.cs
- ServiceConfigurationTraceRecord.cs
- RoleService.cs
- DataColumnPropertyDescriptor.cs
- RuntimeTransactionHandle.cs
- TemplateLookupAction.cs
- Table.cs
- RedistVersionInfo.cs
- DoubleAnimationUsingPath.cs
- ModelItemDictionary.cs
- Calendar.cs
- SocketElement.cs
- DataFormat.cs
- X509SubjectKeyIdentifierClause.cs
- ResetableIterator.cs
- XmlNavigatorStack.cs
- RectIndependentAnimationStorage.cs
- cookiecollection.cs
- ObjectSet.cs
- InteropTrackingRecord.cs
- SqlDataSourceFilteringEventArgs.cs
- DynamicDataResources.Designer.cs
- DataGridPageChangedEventArgs.cs
- XamlParser.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- ExpressionList.cs
- CommonGetThemePartSize.cs
- basenumberconverter.cs
- LocationReferenceValue.cs
- FocusWithinProperty.cs
- OAVariantLib.cs
- SmtpTransport.cs
- XmlQuerySequence.cs
- ImageSourceConverter.cs
- SqlDataSourceCustomCommandPanel.cs
- DataGridColumn.cs
- ListViewSortEventArgs.cs
- sapiproxy.cs
- ConditionCollection.cs
- BufferedStream.cs
- FolderLevelBuildProviderCollection.cs
- ObjectStateFormatter.cs
- GeometryConverter.cs
- BasicCellRelation.cs
- TypeDescriptor.cs
- EditorPart.cs
- Monitor.cs
- TopClause.cs
- MetadataCache.cs
- HttpCookiesSection.cs
- MD5CryptoServiceProvider.cs
- WebPartEditorCancelVerb.cs
- ConnectionPointCookie.cs
- StateWorkerRequest.cs
- HostingEnvironmentException.cs
- AssociationSetMetadata.cs
- GridSplitterAutomationPeer.cs
- VSWCFServiceContractGenerator.cs
- FloaterBaseParaClient.cs
- ConnectionStringsSection.cs
- TreeBuilderBamlTranslator.cs
- GridItem.cs
- NonSerializedAttribute.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- Stroke2.cs
- Win32.cs
- OptionUsage.cs
- HTMLTagNameToTypeMapper.cs
- XPathNodeInfoAtom.cs
- PageWrapper.cs
- TextElement.cs
- DesignerFrame.cs
- ProviderConnectionPointCollection.cs
- EncoderParameters.cs
- DoubleCollectionConverter.cs
- TypedServiceOperationListItem.cs
- PerspectiveCamera.cs
- RoleManagerEventArgs.cs
- rsa.cs