Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » CSharp   (RSS)

Why does C# always use callvirt?

This question came up on an internal C# alias, and I thought the answer would be of general interest. That's assuming that the answer is correct - it's been quite a while. The .NET IL language provides both a call and callvirt instruction, with the callvirt
Posted by ericgu | 10 Comments
Filed under:

Build a 3D XNA game from scratch - webcast series

This came highly recommended... Build a 3D XNA game from scratch - webcast series
Posted by ericgu | 0 Comments
Filed under: ,

What data type should I use?

In my previous posts, I kindof glossed over the different kinds of data types you might have in your application and when you might choose a specific type. I now seek to rectify that oversight, but first I need to talk about types in a more general sense:
Posted by ericgu | 1 Comments
Filed under: ,

HealthVault Data Types - a custom data type architecture

In my last post, I showed how to create custom data types, but there's an obvious problem with that approach. There's only one of them. That means that when you do a query for your custom type, you get all the custom types that meet your filter. If your
Posted by ericgu | 2 Comments
Filed under: ,

HealthVault Data Types - Custom Data Types

So, you're using the SDK, and it turns out that you need to store some data, and there isn't a built-in type that stores what you need. What do you do? The SDK provides a way for you to create your own custom type. There's an important limitation to this
Posted by ericgu | 1 Comments
Filed under: ,

xUnit.net...

From Jim Newkirk, one of the original NUnit authors... xunit.net
Posted by ericgu | 1 Comments
Filed under: , ,

Beautiful code...

O'reilly publishes Beautiful Code Jonathan Edwards counters with a beautiful explanation . Now, I haven't read the new book, but I have a strong resonance with what Edwards wrote. You should definitely read the whole thing, but I few sentences jumped
Posted by ericgu | 10 Comments
Filed under: ,

Member names and UI controls

A follow-on to the previous discussion about member names. There were a variety of opinions, some of which argued for using no prefix at all. For those of you who are in the group, I'm interested in how you manage things when you are doing UI work, and
Posted by ericgu | 15 Comments
Filed under: ,

YAGNI and unit tests...

Thanks for your comments. I decided to go ahead and write the unit tests for that layer, both because I knew what not writing them would be like, and I wanted to play with wrapping/mocking a system service. I also decided - as some of you commented -
Posted by ericgu | 7 Comments
Filed under: ,

Does YAGNI ever apply to tests?

I've been writing a small utility to help us do some configuration setup for testing. It needs to walk a directory structure, find all instances of a specific xml file, and then make some modifications to the file. I TDD'd the class that does the XML
Posted by ericgu | 8 Comments
Filed under: ,

Lost Column #2: Unsafe Image Processing

(circa November 15, 2001) I think this column stands up pretty well without caveat. I should note that I wrapped the image class to provide nicer pixel-based access in a class you can find here . I suggest basing your code on that rather than what I wrote
Posted by ericgu | 9 Comments
Filed under: , ,

To m_ or no to m_, that is the question...

I apologize for shocking your system by posting more than once a month - there are reasons for that, but I unfortunately can't get into them right now - but Keith added an interesting comment to my last post. He said: Side Note: a bit disturbing you're
Posted by ericgu | 44 Comments
Filed under: ,

The problem with intellisense

Today I was working with some sample code, and I came across a misspelling. Not a big deal - there was a field that was named "m_postion" rather than "m_position". But that got me thinking... In the past, that sort of thing wouldn't have happened. You
Posted by ericgu | 4 Comments
Filed under: ,

App Domains and dynamic loading (the lost columns)

As promised, I'm going to start republishing some of my columns that were eaten by MSDN. I spent some time reading this one and deciding whether I would re-write it so that it was, like, correct. But it became clear that I didn't have a lot of enthusiasm
Posted by ericgu | 3 Comments
Filed under: , ,

Unit testing support in VS Pro

I'm at least a month late in linking to this, but if you've been paying very little attention it might still be new that VS Pro will support unit testing in Orcas. Which I think is great news.
Posted by ericgu | 3 Comments
Filed under: ,
More Posts Next page »
 
Page view tracker