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 / 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. // // ==--== /*============================================================ ** ** 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientScriptManagerWrapper.cs
- LayoutDump.cs
- CompareInfo.cs
- WindowsToolbar.cs
- CategoryGridEntry.cs
- XslException.cs
- GlobalizationAssembly.cs
- TransactionWaitAsyncResult.cs
- GPRECT.cs
- SerializerDescriptor.cs
- SoapFormatterSinks.cs
- SymDocumentType.cs
- CalendarModeChangedEventArgs.cs
- CustomErrorCollection.cs
- ConfigurationSchemaErrors.cs
- LinqDataSourceDeleteEventArgs.cs
- WsdlInspector.cs
- ProfileService.cs
- NavigatingCancelEventArgs.cs
- HtmlInputImage.cs
- TabControlCancelEvent.cs
- ComPlusDiagnosticTraceSchemas.cs
- WebPartVerbCollection.cs
- complextypematerializer.cs
- StylusPointDescription.cs
- InfoCardArgumentException.cs
- HttpPostedFile.cs
- HtmlEncodedRawTextWriter.cs
- ProgressBarRenderer.cs
- ColumnWidthChangingEvent.cs
- DSACryptoServiceProvider.cs
- SocketInformation.cs
- TreeNodeStyleCollection.cs
- CustomAttribute.cs
- httpserverutility.cs
- SettingsBindableAttribute.cs
- RefreshPropertiesAttribute.cs
- ColorAnimationUsingKeyFrames.cs
- Single.cs
- SystemException.cs
- MembershipPasswordException.cs
- IfJoinedCondition.cs
- ContainerUtilities.cs
- Function.cs
- GraphicsContainer.cs
- QilFunction.cs
- InputReferenceExpression.cs
- EntityDesignerDataSourceView.cs
- BufferBuilder.cs
- DataViewSetting.cs
- Hash.cs
- TypedRowGenerator.cs
- PersonalizationProviderHelper.cs
- WindowsGraphicsCacheManager.cs
- HttpProfileGroupBase.cs
- TextRenderer.cs
- LinkUtilities.cs
- Int32AnimationUsingKeyFrames.cs
- SortKey.cs
- ColumnBinding.cs
- HtmlWindowCollection.cs
- DelegateArgument.cs
- MissingFieldException.cs
- Int16Storage.cs
- CacheMode.cs
- ChildrenQuery.cs
- LZCodec.cs
- DockAndAnchorLayout.cs
- CodeObjectCreateExpression.cs
- FlatButtonAppearance.cs
- BoundPropertyEntry.cs
- HttpListenerRequest.cs
- ThumbButtonInfo.cs
- PhonemeEventArgs.cs
- SectionInformation.cs
- MeasureData.cs
- Flattener.cs
- Publisher.cs
- HtmlInputCheckBox.cs
- DataGridTemplateColumn.cs
- CodeGroup.cs
- SoundPlayerAction.cs
- EFDataModelProvider.cs
- TrackingServices.cs
- TreeBuilderXamlTranslator.cs
- ButtonFieldBase.cs
- BindingExpression.cs
- XamlWriter.cs
- SqlParameterizer.cs
- TableLayoutSettings.cs
- ClientProxyGenerator.cs
- MetabaseSettingsIis7.cs
- ResourceCategoryAttribute.cs
- SoapSchemaExporter.cs
- JapaneseCalendar.cs
- PointCollectionValueSerializer.cs
- DESCryptoServiceProvider.cs
- ContentPlaceHolder.cs
- MenuItemCollection.cs
- XPathAncestorQuery.cs