Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > BOOK: Professional C# 2005
|
BOOK: Professional C# 2005
This is the forum to discuss the Wrox book Professional C# 2005 by Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones; ISBN: 9780764575341
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2007, 10:33 AM
Registered User
 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default generic type instantiation??

 
Quote:
quote:In case new objects of a generic type must be instantiated in a generic class, the where clause can be extended with the constructor constraint new(). This constructor constraint defines that a default constructor must be available with the generic type:


Code:
public class MyClass<T>
where T : IFoo, new()
{
//...
hi can some1 explain me what exactly does it say ..becoz im a bigginer in c#






Similar Threads
Thread Thread Starter Forum Replies Last Post
Constructors - instantiation brysora C# 2005 1 September 3rd, 2007 08:45 PM
Generic return type mega C# 4 November 30th, 2006 11:00 AM
Generic return type mega C# 2005 1 November 30th, 2006 07:27 AM
Generic Type specification during runtime ChronicCode General .NET 2 December 3rd, 2004 01:51 AM
Generic Type specification during runtime ChronicCode .NET Framework 2.0 0 December 2nd, 2004 12:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.