base-class-library
Nullable<> types are a BCL, CLR, or both implementation?
Some time ago I thought that Nullable<> value types are classes, encapsulating value types and a bool to HasValue. With som开发者_开发技巧e implicit cast operador for null, just implemented at BCL.[详细]
2023-02-05 05:24 分类:问答Why we use flush parameter with Encoder.GetBytes method
This lin开发者_JAVA技巧k explains the Encoder.GetBytes Method and there is a bool parameter called flush explained too . The explanation of flush is :[详细]
2023-01-19 03:32 分类:问答Would .NET be able to function just as well without the use of type Object?
I am asking this because it seems like using Object seems to be an easy way out to solve certain problems, like \"I don\'t have a specific type, so use Object\", etc.[详细]
2023-01-15 22:24 分类:问答Why is there no Char.Empty like String.Empty?
Is there a reason for this? I am asking because if you needed to use lots of empty chars then you get into the same situation as you would when you use lots of empty strings.[详细]
2023-01-15 22:15 分类:问答Why do the overloads of String.Format exist?
I was using Reflector to look at the implementation of String.Format and had always been under the impression that the overloads of String.Format that took 1, 2 & 3 arguments were optimized versio[详细]
2022-12-30 04:00 分类:问答Why need to mention "Supported by the .NET Compact Framework" for classes members?
In MSDN documentation, many .NET classes metho开发者_如何学运维ds (like ArrayList ) mentioned that \"Supported by the .NET Compact Framework\".[详细]
2022-12-26 17:25 分类:问答Go To Statement Considered Harmful?
If the statement above is correct, then why when I use reflector on .Net BCL I see it is used a lot? EDIT: l开发者_开发百科et me rephrase: are all the GO-TO\'s I see in reflector written by humans or[详细]
2022-12-23 20:56 分类:问答Bundle .NET dlls to run application in .NET-less machine?
AFAIK, ngen turns MSIL into native code (also reffered to as pre-JIT), however I never payed too much attention at it\'s startup performance impact. Ngen\'d applications still require the .NET base cl[详细]
2022-12-22 21:39 分类:问答Why did .NET's EnableDecompression default value change between 2.0 and 3.0?
We use .NET Web Services--both non-WCF and WCF, though the overwhelming majority is non-WCF, for legacy reasons--pretty heavily, and as I was testing something in Fiddler, I noticed that the response[详细]
2022-12-20 06:47 分类:问答Is there a "Number" struct/class in .NET?
I am attempting to store a variable length number that can have leading zeros as a part of that number.[详细]
2022-12-18 07:49 分类:问答