all groups > dotnet general > may 2005 > threads for sunday may 22
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Calling a constructor from another
Posted by Sathyaish at 5/22/2005 8:02:07 PM
How does a constructor of one class call another of the same class?
When would this mechanism make sense or be required?
PS: Two instances I saw are:
(a) While using the Singleton pattern
(b) While using the Factory pattern
... more >>
Windows Forms MainMenu question
Posted by yoshimitsu at 5/22/2005 7:04:57 PM
Hi,
I have decided to use a MainMenu in my main form. I have a menu item
"Open Form". When this item is clicked I want the "newform.frm" to open just
below the menu in the main form. How can this be done? I am using VB.Net.
Thanks for any replies.
Yoshi... more >>
Types of constructors
Posted by Sathyaish at 5/22/2005 12:42:28 PM
What is a private constructor, and why would a class have one? What are
the other kinds of constructors besides:
(1) public constructors; and
(2) parameterized constructors
And I understand that they are not mutually exclusive of one another.
The above classification assimilates my knowledg... more >>
better performance
Posted by Aaron at 5/22/2005 11:42:51 AM
Some of my db-driven web pages rarely change. They pull the exact same data
every time (the table is almost read-only). Should I consider using page
caching? or do i just need to turn on caching in IIS 6? I'm new to this.
could someone point me to the right direction?
Thanks,
Aaron
... more >>
BMP pixel array
Posted by james at 5/22/2005 10:42:02 AM
I don't know if this is the right place to show my question.
I can't understand why, in the BMP array after the headers, i find some zero
that aren't in the real BMP image. This zero are at the end of a single pixel
row. Sometime i find three zeros. I've seen, in a web page, that if a row
ins... more >>
Type.IsSubclassOf
Posted by ME at 5/22/2005 10:41:09 AM
It appears that IsSubclassOf does not work. In the following example, why
does
typeof(IDerived).IsSubclassOf(typeof(IRoot));
yeild False when the IDerived interface DOES in fact derive from IRoot? The
IsSubClassOf documentation states the following:
"Determines whether the current Type de... more >>
Where are ref types that are members of value types stored?
Posted by Sathyaish at 5/22/2005 7:29:53 AM
Structs are value types, strings are ref types. If you have something
like this:
struct foo
{
System.String str;
}
foo TheDayToday;
then, where's
TheDayToday.str
going to be stored?
(a) The string is going to be stored on the stack;
(b) The struct is going to be stored o... more >>
|