Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SymDocumentType.cs
- TextDecorationLocationValidation.cs
- RangeValidator.cs
- DefaultSection.cs
- assertwrapper.cs
- StandardOleMarshalObject.cs
- OutputCacheSettings.cs
- XPathChildIterator.cs
- TabletCollection.cs
- NotifyIcon.cs
- XmlSchemaComplexContent.cs
- DefaultDialogButtons.cs
- ToolStripControlHost.cs
- TreeIterator.cs
- UnionCodeGroup.cs
- MemberDescriptor.cs
- AggregateNode.cs
- FixedTextPointer.cs
- Inline.cs
- CodeBlockBuilder.cs
- DataFieldEditor.cs
- HttpServerVarsCollection.cs
- ExpandSegment.cs
- DataGridColumn.cs
- ImageClickEventArgs.cs
- MaskedTextBox.cs
- QueryIntervalOp.cs
- CLSCompliantAttribute.cs
- DataControlPagerLinkButton.cs
- GeometryDrawing.cs
- AccessibleObject.cs
- DataTableTypeConverter.cs
- UriTemplateVariablePathSegment.cs
- SoapReflectionImporter.cs
- MimeFormReflector.cs
- InstanceDataCollection.cs
- ApplicationActivator.cs
- BackgroundWorker.cs
- ExpressionBinding.cs
- HttpModuleCollection.cs
- ObjectDataSourceView.cs
- UnicastIPAddressInformationCollection.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- AssemblyUtil.cs
- DataServiceKeyAttribute.cs
- CodeBlockBuilder.cs
- BuildTopDownAttribute.cs
- DaylightTime.cs
- HttpServerChannel.cs
- DateTimeFormatInfoScanner.cs
- LinearQuaternionKeyFrame.cs
- AppDomain.cs
- ReadOnlyHierarchicalDataSource.cs
- ETagAttribute.cs
- ListItemCollection.cs
- HashMembershipCondition.cs
- EventRouteFactory.cs
- HandlerMappingMemo.cs
- IERequestCache.cs
- Models.cs
- CompilerHelpers.cs
- PolicyException.cs
- ProtocolsSection.cs
- ToolStripContentPanelRenderEventArgs.cs
- CodePropertyReferenceExpression.cs
- WebConfigurationHost.cs
- MobileTextWriter.cs
- CodeDelegateCreateExpression.cs
- XhtmlBasicValidationSummaryAdapter.cs
- ThreadExceptionEvent.cs
- GiveFeedbackEventArgs.cs
- SetUserPreferenceRequest.cs
- ActivationArguments.cs
- HandlerFactoryWrapper.cs
- DataPointer.cs
- SafeThreadHandle.cs
- SharedUtils.cs
- Timeline.cs
- DurableInstanceContextProvider.cs
- ConfigXmlElement.cs
- InfiniteTimeSpanConverter.cs
- ELinqQueryState.cs
- DataGridItemCollection.cs
- RtType.cs
- Claim.cs
- DesignerActionItemCollection.cs
- CryptoApi.cs
- InstanceDataCollection.cs
- MembershipSection.cs
- SchemaSetCompiler.cs
- OrderedDictionary.cs
- _Rfc2616CacheValidators.cs
- DefaultHttpHandler.cs
- ClientConvert.cs
- SqlUDTStorage.cs
- LicenseContext.cs
- XmlValidatingReaderImpl.cs
- DataGridViewRowsRemovedEventArgs.cs
- xmlsaver.cs
- ExceptionUtil.cs