Browse by Tags

All Tags » Whidbey (RSS)

Resizing a Form has always been a pain in the rectum...

Think really hard for a second about how layout logic works... Oh, not that hard, you're starting to smoke. Here, how about I think about it for you and then you can point out where you have a difference of opinion... That works better for me anyway....
Posted by Justin Rogers | 4 comment(s)
Filed under: ,

Illegal Cross Thread Exceptions under the debugger when using Windows Forms and Whidbey...

The Windows Forms team gets an A today for some super creativity... When you are running under a debugger, and only under the debugger, you start to get a bunch of really strange cross thread exceptions if you try to do something like call Focus() on...
Posted by Justin Rogers | with no comments

Performance inspiration found in List.Contains() method plus some additional functionality we can add.

While I was rewriting a more complete stack implementation I was using the actual generic stack as a guideline to make sure I implemented all of their methods and I came across their Contains implementation. There were some out of place operations in...

Array.Resize is a pretty cool little tool. Copy hints might be a nice addition?

If you normally use the supporting collections, this won't be much of a toy for you. If you rely on arrays, and lots of them, and find yourself resizing them every now and then with little helper functions or inline resize code, then you should check...
Posted by Justin Rogers | with no comments

Type identity for data is important. How do we refactor collections in the face of Whidbey?

The reality of component design is in the contractual agreements between different components. .NET has certainly stepped in and created an excellent cross component scheme to allow just about any code to interoperate with any other piece of code. In...

Reliability, CER, and new programming challenges and decisions...

If you search for information on the new reliability features of Whidbey, you don't get much back. In fact, there are only a few references to the most important items, such as ReliabilityContract, Consistency and CER. However, if you go poking through...
Posted by Justin Rogers | 3 comment(s)
Filed under:

Private Reflection, Whidbey, MetadataTables, and getting previously hard to get data

A newsgroup member was asking whether or not there were any mechanisms for converting metadata tokens to actual reflected types in Whidbey. My response was that there appeared to be a series of awesome classes almost ready to go in Beta 1, but they were...
Posted by Justin Rogers | 2 comment(s)
Filed under: ,

Testing: GC Sanity Checks in Whidbey

I have a feeling this method will only be useful when you can run a series of tests without any collections taking place during your tests. Whenever a collection occurs you can never be sure of the amount of time spent in collection (anyone on the CLR...
Posted by Justin Rogers | with no comments

Performance: Refactoring generic List.RemoveAll... Speed lost in implementation and Array.Clear...

Well, I got railed after my previous posting on the List.RemoveAll method How is that RemoveAll method on the generic List actually implemented? . Apparently I'm not allowed to make basic comments anymore, and I quote "Now your remark is just information...

How does List<T>(IEnumerable<T>) avoid the costs of expanding the internal collection?

The interface IEnumerable<T> is just like the old interface IEnumerable. It allows a single method GetEnumerator which returns an IEnumerator<T>. This second interface has the property Current and a method for moving the index MoveNext . As...
More Posts Next page »