View Complete Post
In this article Juval Lowy describes how exciting new features in Visual Studio 2005, that will improve your overall productivity compared to the first version of C#, so you can write cleaner code faster.
MSDN Magazine Visual Studio 2005 Guided Tour 2006
C# 2.0 introduces a wealth of exiting new features, such as generics, iterators, partial classes and anonymous methods. While generics are the most talked-about feature especially for former classic C++ developers, the rest of the new features are important additions to your .NET development arsenal, enhancing power and improving overall productivity. This article is dedicated to all the new C# 2.0 capabilities besides generics to give you a good overall picture of the upcoming features.
MSDN Magazine May 2004
Why are Razor views not generated as partial classes? Making them partial classes gives us the option to have a code behind where we can do some of the stuff we're forced to do in the template itself in the code behind file.
Yes, I know the standard "go-to" thing is Html helper but I don't want to use Html helpers for these things as they are too specific to the view in question and besides, having a clutter of extension methods is just not the way to go.
I'd like to see Razor views generated as partial classes.
First off, I know C# doesn't allow for multiple inheritance.
I have an auto-generated partial class, over which I have no control that inherits another object. Like:
public partial class ThisClass : ThatClass
I want to use an abstract class via inheritance in my own partial class to leverage a lot of existing functionality. Like:
public partial class ThisClass : MyAbstractClass
public abstract class MyAbstractClass
protected void Method(AnotherObject parameter)
But how can I? You can't specify multiple inheritance in C#.
I don't think an Interface would work in this scenario? There are many generated partial classes. I just want to use the functionality in my existing library.
If anyone can point to some functional examples of fudging multiple inheritance in the context I provide or suggest a workaround, that would be great!
This is my first visit to the forums, I hope someone here can help me
I'm writing a small webapplication for creating repair tickets and adding comments, really basic
now I'm writing this in MVC2
So I have 2 controllers, 1 HomeController that does everything related to the tickets (listing tickets, creating new ones, editing) and 1 controller for the comments
the edit view for the homecontroller contains a partial view for /comment/create
so /home/edit/ticketnumber can edit the title and status of the ticket on the left side of the screen, the right side of the screen contains the partial view for adding comments
this is done like this:
but if I look at the generated html code when running the app, both save buttons go to /home/edit/ticketnumber
so the comment is never saved.
I hope this makes sense and that someone can help me solve this
Can anyone provide me an example of one to one and one two many relationship between classes in c# with class diagram and explationation.
This column presents an approach to Antirandom (AR) testing the author calls partial AR string testing, which can be used to test a wide range of software systems.
MSDN Magazine October 2009
Dino Esposito compares the use of AJAX patterns and DOM manipulations to the use of the ASP.NET partial rendering engine.
MSDN Magazine August 2008
Learn what the WPF Animation Classes can do, what they can't, and how to extend them.
MSDN Magazine July 2007
The next version of Visual Studio currently code-named "Orcas"supports advanced encryption algorithms, Elliptic curve cryptography, big integers, and other security enhancements. The CLR team explains.
Mike Downen, Inbar Gazit, and Justin Van Patten
MSDN Magazine April 2007
Here Joachim H. FrÃÂ¶hlich andÃÂ Reinhard Wolfinger show you how to get all the great functionality of the .NET Profiling API the easy way, with custom wrappers.
Joachim H. FrÃÂ¶hlich and Reinhard Wolfinger
MSDN Magazine April 2006
Timers often play an important role in both client applications and server-based components (including Windows services). Writing effective timer-driven managed code requires a clear understanding of program flow and the subtleties of the .NET threading model. The .NET Framework Class Library provides three different timer classes: System.Windows.Forms.Timer, System.Timers.Timer, and System.Threading.Timer. Each of these classes has been designed and optimized for use in different situations. This article examines the three timer classes and helps you gain an understanding of how and when each class should be used.
MSDN Magazine February 2004
MSDN Magazine December 2003