Welcome to MSDN Blogs Sign in | Join | Help

January 2004 - Posts

Other DateTime Stuff

The DateTime FAQ is also a good source of information on this. I hope to add a lot more to this over time: http://www.gotdotnet.com/team/clr/bcl/TechArticles/techarticles/DateTimeFAQ/FAQ.aspx This has been on the site for a while.
Posted by BCLTeam | 3 Comments

New DateTime Best Practices Article

[Anthony Moore] A colleage of mine from another team, Dan Rogers, has written an excellent article on the best way to use the DateTime class, and to deal with problems like time zones and Daylight Savings Time. He has let us post it on our site: http://www.gotdotnet.com/team/clr/bcl/TechArticles/techarticles/datetimeguidelines.doc
Posted by BCLTeam | 2 Comments

Time is Critical, as I Idle by ... [Kit George]

Through the BCL Website, Gheorghe Marius enquired: Why can't we set a thread priority to TIME_CRITICAL. from managed code ? We don't allow TIME_CRITICAL, or IDLE. The CLR will use the current thread to perform an assembly load, a type load, JIT a method,
Posted by BCLTeam | 0 Comments

lock vs. MethodImplOptions.Synchronized [Kit George]

A BCL Website customer (Michael) recently asked: Is there any difference in the jitted code between using the Attribute System.Runtime.CompilerServices.MethodImplAttribute( MethodImplOptions.Synchronized ) and using a lock(this) {...} in the method body?
Posted by BCLTeam | 7 Comments

Debugging properties [Kit George]

Ilya Ryzhenkov Enquired: Is there any method to detect (not switch off) if property getter is being called by debugger and not user code? This would help to debug delay-loaded properties and many other stuff. For future versions, something like Debugger.IsGettingProperty
Posted by BCLTeam | 4 Comments

A new look BCL Web Page... [Kit George]

Sorry to all those who had asked questions via the bcl webpage and the answeres have been long in the coming: they got lost but fortunately I was able to retrieve them, it's simply now a matter of getting to all your great suggestions, and queries. Check
Posted by BCLTeam | 0 Comments

Give me the Short Path/File/Directory names, baby! [Kit George]

Keith Hill inquired recently: There are times when displaying long paths (like as a menu item) that you would like to display a shortened path. Since the Win32 API already has a CompactPath API, it would be nice to expose this via the Path class. We completely
Posted by BCLTeam | 2 Comments

Parsing: Why not get as far as you can, and give me the result? [Kit George]

Dmitriy Zaslavskiy asked recently: Can you add an overload that parses as much as it can and returns number of parsed characters. I'm interpreting this as something which would go on our basetypes Dmitry, and it is an interesting idea: a nice variation
Posted by BCLTeam | 0 Comments

Any chance of an IReadOnlyList collection interface? [Kit George]

Joe White asked for this specific feature: For the most part, I like the way you designed collections in .NET -- especially interfaces like IEnumerable, ICollection, and IList. The problem is, you jump straight from a read-only, non-random-access collection
Posted by BCLTeam | 7 Comments

Directory.Move, but not Directory.Copy? [Kit George]

Blane Nelson enquired about Directory.Copy: Why does the directory object have a static method to move a directory but not one to copy a directory. Was this an oversite? I wouldn't call it an oversight necessarily Blane: we explicitly didn't include this
Posted by BCLTeam | 2 Comments

Math Functions: more please! [Kit George]

Jacek Blaszczynski asked this request about some of our Math functionality: I would greatly appreciate improvements in available set of functions and their behaviour getting them closer to C++ experience. One of misbehaviours is explicit cast of float
Posted by BCLTeam | 7 Comments

Memory Mapped Files: are we doing it? [Kit George]

Gheorghe Marius asked this question: Question: Are there any plans to add support for memory mapped files in Whidbey ? If no...why ? The answer is no Gheorghe. The why comes down to priorities, there simply wasn't enough interest in the feature at the
Posted by BCLTeam | 3 Comments

Consistency of returned Strings [Kit George]

Atif Aziz asked this very interesting (and difficult) question regarding the behavior of strings: It would be nice to see a single and consistent policy across the framework with respect to returning strings. Presently, one has to constantly look up the
Posted by BCLTeam | 3 Comments

A poetic BCL tribute, from Julia Lerman [Kit George]

Julia Lerman wrote this short verse (let's call it 'Ode to BCL') in the mould of “The Elements”, by Tom Lehrer : System, data, SQL Client, Text and XML Reflection and Collections, Port and Diagnostic hell Windows Forms and Drawing, Web, U.I.
Posted by BCLTeam | 0 Comments

Throttling, Bandwidth, and Send/Recieves [Kit George]

A question was asked recently on the BCL website (by at least a couple of people, 'Andy' among others): Why wasnt the ability to retreive a sockets send/receive speed added to the .net framework? Also, unless I have missed it, you cannot throttle the
Posted by BCLTeam | 0 Comments
 
Page view tracker