Home / ASP.NET Weblogs

Browse by Tags

Related Posts

  • How To Set Elements Of An Array Of A Private Type Using Visual Studio Shadows

    Visual Studio uses Publicize to create accessors public for private members and types of a type. But when you try to set elements of a private array of elements of a private type, things get complicated. Imagine this hypothetic class to test: public static class MyClass { private static readonly MyInnerClass...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 01-19-2010, 12:00 AM
    Filed under: Testing, MSDN, Microsoft, .NET, C#, VisualStudio, LINQ, VisualStudio2008, VisualStudio2010, TipsAndTricks, .NET2.0, .NET3.5, .NET4.0
  • Playing With LINQ: Getting Interface Property Implementations

    Today, my friend Nuno was writing some code to get the PropertyInfo s of a class implementation of an interface. Given this interface: public interface ISomeInterface { int IntProperty { get ; set ; } string StringProperty { get ; } void Method(); } and this class: public class SomeClass : ISomeInterface...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 01-27-2010, 12:00 AM
    Filed under: MSDN, Microsoft, .NET, C#, LINQ, TipsAndTricks, .NET3.5, .NET4.0
  • C# 4.0: Covariance And Contravariance In Generics Made Easy

    In my last post , I went through what is variance in .NET 4.0 and C# 4.0 in a rather theoretical way. Now, I’m going to try to make it a bit more down to earth. Given: class Base { } class Derived : Base { } Such that: Trace .Assert( typeof ( Base ).IsClass && typeof ( Derived ).IsClass &&...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 04-15-2010, 12:00 AM
    Filed under: CodeProject, .NET, .NET4.0, C#, C#4.0, Microsoft, MSDN, Techdays, TechDaysPT10
  • C# 4.0: Named And Optional Arguments

    As part of the co-evolution effort of C# and Visual Basic , C# 4.0 introduces Named and Optional Arguments . First of all, let’s clarify what are arguments and parameters : Method definition parameters are the input variables of the method. Method call arguments are the values provided to the method...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 04-16-2010, 12:00 AM
    Filed under: Events, CodeProject, .NET, .NET4.0, C#, C#4.0, Microsoft, MSDN, SoftDev, Techdays, TechDaysPT10
  • C# 4.0: COM Interop Improvements

    Dynamic resolution as well as named and optional arguments greatly improve the experience of interoperating with COM APIs such as Office Automation Primary Interop Assemblies (PIAs) . But, in order to alleviate even more COM Interop development, a few COM -specific features were also added to C# 4.0...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 04-19-2010, 12:00 AM
    Filed under: .NET, .NET4.0, C#, C#4.0, CodeProject, Events, Microsoft, MSDN, SoftDev, Techdays, TechDaysPT10
  • C# 4.0: Dynamic Programming

    The major feature of C# 4.0 is dynamic programming. Not just dynamic typing, but dynamic in broader sense, which means talking to anything that is not statically typed to be a .NET object. Dynamic Language Runtime The Dynamic Language Runtime ( DLR ) is piece of technology that unifies dynamic programming...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 04-18-2010, 12:00 AM
    Filed under: .NET, .NET4.0, C#, C#4.0, CodeProject, Events, Microsoft, MSDN, SoftDev, Techdays, TechDaysPT10
  • C# 4.0: Alternative To Optional Arguments

    Like I mentioned in my last post , exposing publicly methods with optional arguments is a bad practice (that’s why C# has resisted to having it, until now). You might argument that your method or constructor has to many variants and having ten or more overloads is a maintenance nightmare, and you’re...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 04-18-2010, 12:00 AM
    Filed under: .NET, .NET4.0, C#, C#4.0, CodeProject, Events, Microsoft, MSDN, Techdays, TechDaysPT10
  • TechDays 2010: What’s New On C# 4.0

    I would like to thank those that attended my session at TechDays 2010 and I hope that I was able to pass the message of what’s new on C# . For those that didn’t attend (or did and want to review it), the presentation can be downloaded from here . Code samples can be downlaoded from here . Here’s a list...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 04-26-2010, 12:00 AM
    Filed under: MSDN, Events, Microsoft, .NET, C#, Techdays, .NET4.0, TechDaysPT10, C#4.0
  • C# 4.0: Covariance And Contravariance In Generics

    C# 4.0 (and .NET 4.0) introduced covariance and contravariance to generic interfaces and delegates. But what is this variance thing? According to Wikipedia , in multilinear algebra and tensor analysis, covariance and contravariance describe how the quantitative description of certain geometrical or physical...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 04-13-2010, 12:00 AM
    Filed under: SoftDev, MSDN, Events, Microsoft, .NET, C#, Techdays, .NET4.0, TechDaysPT10, CodeProject, C#4.0
  • The Evolution Of C#

    The first release of C# ( C# 1.0 ) was all about building a new language for managed code that appealed, mostly, to C++ and Java programmers. The second release ( C# 2.0 ) was mostly about adding what wasn’t time to built into the 1.0 release. The main feature for this release was Generics . The third...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 04-12-2010, 12:00 AM
    Filed under: MSDN, Events, Microsoft, .NET, C#, Techdays, .NET4.0, TechDaysPT10, C#4.0
Page 1 of 1 (10 items)