No announcements
Found 1436611 threads
-
6 Votes
Constructor overloading
You will only suffer the boxing penalty if the object is a value type (such as a struct or an int).Answered | 4 Replies | 4995 Views | Created by Maciej Pakulski - Sunday, March 13, 2011 9:36 AM | Last reply by Jesse Houwing - Tuesday, March 15, 2011 11:51 AM -
0 Votes
constructors in Struct
Allowing a developer to override this default constructor interferes with the resulting array allocation performance in all allocations, because a check would have to be performed every ...Answered | 3 Replies | 3573 Views | Created by aneesh_25 - Sunday, January 24, 2010 1:02 PM | Last reply by Brandon Haynes - Sunday, January 24, 2010 4:13 PM -
2 Votes
constructor
How to pass value to the constructor of base class from constructor of derived class?Answered | 1 Replies | 3541 Views | Created by Jayesh _G - Monday, October 25, 2010 8:17 AM | Last reply by Mike_999 - Monday, October 25, 2010 8:24 AM -
1 Votes
When extending UIElement, "The type 'Windows.UI.Xaml.UIElement' has no constructors defined"
This is the reason we provide the desired base types for your scenario such as Control, UserControl or some of the derived types from those.Answered | 5 Replies | 4377 Views | Created by Matthew Saunier - Monday, March 12, 2012 2:56 AM | Last reply by Matthew Saunier - Tuesday, March 13, 2012 4:02 AM -
0 Votes
Overloading - static constructor and default instance constructor
using reflection, tells me this: var type = typeof(Item); var constructors = ...Answered | 1 Replies | 2281 Views | Created by Erus Lunae - Thursday, December 15, 2011 5:31 AM | Last reply by GreatVolk - Thursday, December 15, 2011 10:06 AM -
0 Votes
Workflow constructor is called twice
Every workflow instance is associated with a workflow type.Answered | 5 Replies | 4245 Views | Created by Alex Farber - Saturday, December 13, 2008 4:30 PM | Last reply by Jian Gao - MSFT - Tuesday, January 6, 2009 3:42 AM -
2 Votes
Constructors.
Sanjay, As far as I know, it is impossible to not have the base class constructor called.Answered | 4 Replies | 3412 Views | Created by msanjayv - Friday, July 4, 2008 3:53 AM | Last reply by Jan Van der Haegen - Friday, July 4, 2008 1:48 PM -
1 Votes
Why is there no public constructor for EntityType and other metadata types ?
I believe this is "by-design" since the EDM types are defined for schematic representation.Answered | 4 Replies | 3325 Views | Created by NTDeveloper - Monday, September 20, 2010 8:20 PM | Last reply by Kati Iceva - MSFT - Friday, September 24, 2010 4:20 PM -
4 Votes
constructor returning value?
Its return type is void.Answered | 15 Replies | 12774 Views | Created by boobyy - Thursday, September 4, 2008 2:54 AM | Last reply by Rudedog2 - Wednesday, August 8, 2012 5:25 PM -
5 Votes
Constructor in C#
For non-static classes, private constructrors are typically used when you don't want to allow direct instantiation of objects of that type - instead you will return ...Answered | 11 Replies | 4013 Views | Created by Mayoo.N - Monday, April 25, 2011 4:25 AM | Last reply by Arif Sarwar - Tuesday, April 26, 2011 3:40 PM -
0 Votes
Constructor
Is the problem how to define the rectangle to pass into the constructor?Answered | 2 Replies | 3832 Views | Created by Pin Head - Friday, October 15, 2010 3:57 AM | Last reply by .paul. _ - Friday, October 15, 2010 9:51 PM -
4 Votes
When is static constructor called?
It applies to the type initializer when the class is marked as "beforefieldinit".Answered | 12 Replies | 25524 Views | Created by Kunal G - Friday, April 27, 2012 8:53 AM | Last reply by Louis.fr - Monday, April 30, 2012 10:09 AM -
1 Votes
One constructor calling another constructor?
Is there a way for a constructor to call another constructor (within the same class)?Answered | 1 Replies | 2967 Views | Created by Olaf Meding - Wednesday, September 2, 2009 8:03 PM | Last reply by David M Morton - Wednesday, September 2, 2009 8:05 PM -
2 Votes
constructor values
now i pass these two lines through constructor in anther form how i pass Create a constructor for that other form that accepts two ...Answered | 2 Replies | 459 Views | Created by rebmaamberrebmaamber - Saturday, May 21, 2016 9:25 AM | Last reply by Acamar - Saturday, May 21, 2016 10:20 AM -
0 Votes
Parameter Constructor
while sending values from one form to other form , i used constructor. how many parameters can pass through these type of parameter constructors?Answered | 1 Replies | 3269 Views | Created by ஊக்கமது கைவீடேல் - Wednesday, March 24, 2010 4:15 AM | Last reply by DeborahK - Wednesday, March 24, 2010 3:00 PM -
0 Votes
Constructor of external type 'XXXX' can cause side effects
This happens because the compiler thinks your class constructor is a source of potential non-isolation.Answered | 9 Replies | 14857 Views | Created by alexll - Friday, August 7, 2009 3:09 PM | Last reply by Niklas Gustafsson - Saturday, July 3, 2010 4:47 PM -
1 Votes
Static constructor?
Static constructor usually is used to initialize static data and it doesn't have parameter, and also Static constructor dosn't have access to non static data ...Answered | 4 Replies | 3209 Views | Created by deostroll - Monday, December 15, 2008 4:21 PM | Last reply by David M Morton - Wednesday, December 17, 2008 5:07 PM -
1 Votes
a constructor question
Your reference types actually use address pointers to these static pointers.Answered | 8 Replies | 2793 Views | Created by AlexBB - Vista Ult64 SqlSer64 WinSer64 - Tuesday, July 28, 2009 2:48 PM | Last reply by David M Morton - Tuesday, July 28, 2009 8:30 PM -
1 Votes
can a constructor return a value?
That is why we are not defining any return type before constructor name.Answered | 6 Replies | 27890 Views | Created by Jim_21 - Sunday, July 3, 2011 6:52 PM | Last reply by Christopher84 - Saturday, September 10, 2016 12:14 PM -
7 Votes
What is the purpose of constructor in c#??
In C#, a default constructor is always added, you don't have to explicitly add the constructor yourself if you're not going to do anything particular in it.Answered | 10 Replies | 3670 Views | Created by Smita Sil - Wednesday, September 2, 2015 1:43 PM | Last reply by Filip Ekberg - Thursday, September 3, 2015 1:29 AM
No announcements