Re: [ADVANCED-DOTNET] System.Type.GetType

2002-06-06 Thread Craig Andera
The issue is that System.Drawing.Point is not guaranteed to be unique as a name. In fact, you could make your own class with this name. The only way the runtime knows what you're talking about is to specify an assembly. Now, if you want to get back a type object that represents some class without

Re: [ADVANCED-DOTNET] System.Type.GetType

2002-06-06 Thread Sean Greer (SBI-Chico)
Perhaps I've misunderstood, but if you have a reference to the assembly that contains the class, you can use the typeof operator at compile time. For example: Type pointType = typeof(Point); If you need to get the type at runtime, and you don't have an instance on which to call GetType(), then

Re: [ADVANCED-DOTNET] How to tell if the information is cached in a web service

2002-06-06 Thread Marsh, Drew
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] wrote: > I am trying to determine if a DataSet I am returning, from a > web service, is comming from the cache or is being rebuilt. > I have set the cache to 30 days. The dataset is of > significant size, consequently, I have to determine wether to >

Re: [ADVANCED-DOTNET] Singleton pattern

2002-06-06 Thread Frank Hileman
Regarding static var for singleton: I found that static vars are not initialized until the first time you use the class. If you don't use the class, they are never initialized. So your one argument against using a static var is refuted. As another poster pointed out, your code is not thread-safe.

Re: [ADVANCED-DOTNET] Singleton pattern

2002-06-06 Thread franklin gray
Brian: I ran this through the C# to Vb web tool and below is what I got (After I took out the comments). Questions: 1) What is _value? 2) How is it different from the bottom class? What functionality does it give me that the bottom class doesn't? 3) What is volatile? NotInheritable Pub

Re: [ADVANCED-DOTNET] Singleton pattern

2002-06-06 Thread Ian Griffiths
Of course the problem with this is that it it is not thread safe. You could go with a hybrid: public sealed class Singleton { private static Singleton TheSingleton = new Singleton(); public static Singleton Singleton { get { return sobjSingleton; } } private

Re: [ADVANCED-DOTNET] Adding IntelliSense ToolTips

2002-06-06 Thread Ted Osberg
Ok, so now that i've added the files to the proper directories where do I go from here? Any other documentation besides 'put these files here'? You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.d

[ADVANCED-DOTNET] Bug in System.Reflection?

2002-06-06 Thread Chris Daly
This looks like a bug in System.Reflection to me. The program below raises a ReflectionTypeLoadException on a call to Assembly.GetTypes(). All of the assemblies involved are standard framework ones. The assembly causing the problem is System.ServiceProcess. The tricky part is the dependencies b

[ADVANCED-DOTNET] Just an interesting observation

2002-06-06 Thread Alan Robbins
It's been a while since I posted anything but you can be assurred we are all still banging away on .NET here. Here's an interesting observation: This is legal (VB Syntax) _ComboBoxData.Rows.Add(values:=New Object() {Nothing, Nothing, Nothing, Nothing, Nothing, Nothing}) And so is this: _Combo

Re: [ADVANCED-DOTNET] problem with c# client while calling the web service by using the soap

2002-06-06 Thread Greg Reinacker
It looks like the problem lies with your service's WSDL document; the parameter str is defined as a string, which must be escaped as shown. Do you have control of the service's code? Can you post the WSDL document you started from? Greg Reinacker Reinacker & Associates, Inc. http://www.rassoc.c

Re: [ADVANCED-DOTNET] Size of object

2002-06-06 Thread Nick Wienholt
> Looks like I was in the right track in my last email - I would have > thought that the Cache would have taken the size of the object > into account - it looks like they intended to take this into account >( from the method names and structure) account but could not do > it :) . AllocationProfil

Re: [ADVANCED-DOTNET] Singleton pattern

2002-06-06 Thread Stefan Holdermans
Just to come up with a good reason to go for public sealed class Singleton { private static Singleton sobjSingleton; public static Singleton GetSingleton { if (sobjSingleton == null) sobjSingleton = new Singleton(); return sobjSingleton; } privat