Browse by Tags

Tagged Content List
  • Blog Post: Web Browser/DHTML: Access the XMLDocument property through .NET

    When Internet Explorer requests an XML page from a web server, it will apply an XSL stylesheet. This can be an XSL stylesheet that is provided in the XML file, e.g.: <?xml-styleheet href="filename.xsl" type="text/xsl" ?> If no stylesheet is provided, Internet Explorer will use a default stylesheet...
  • Blog Post: Directory.GetFiles and search patterns

    System.IO.Directory.GetFiles(string,string) enables you to provide a search pattern as the second argument. I have a list of file extensions that I need to search for and discovered two issues with this method. 1. The second argument only accepts a single search pattern string, so I used the following...
  • Blog Post: C++ vs C#

    Eric Gunnerson recently posted some reasons why C# is an improvement over C++ and some updates . This post is a good read - be sure to consider the comments. Some of my thoughts... Sure, with C#, I do spend less time considering memory usage (i.e. preventing memory leaks), but the issue of closure doesn...
  • Blog Post: N/Direct web site - .NET interoperability resource

    The N/Direct web site is run by Mattias Sjögren , a Microsoft MVP. In his own words: "N/Direct is a site for developers seeking information or answers about interoperability between .NET managed code and native unmanaged code." The web site has an impressive selection of articles, samples and other resources...
  • Blog Post: Visual C# 2003 "Implement Interface" feature

    Just discovered a great tip for Visual C# 2003. If you implement an interface (or event/delegate) on your class and don't want to type all the methods, just type the interface name in your class derivation list and Intellisense will display a tooltip saying “Press TAB to insert stubs for <interfacename>”...
  • Blog Post: Help out the Interop community

    If you take a walk over to http://www.pinvoke.net , you can find an active WiKi community that is documenting the PInvoke statements used to call Win32 and other unmanaged APIs from managed code. While you're there, why not add signatures and other information for any of the unmanaged APIs you've recently...
  • Blog Post: New Tricks (Thinking in C#)

    Attending a great “Designing .NET Class Libraries” class run by Brad Abrams today. I was surprised to see a coding pattern that I would commonly use in C++ and be told that was NOT the best way to do this in C#. int len = array.Length(); for ( int i=0; i<len; i++ ) { array[i] = 0;...
Page 1 of 1 (7 items)