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
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
[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
>
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.
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
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
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
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
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
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
> 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
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
12 matches
Mail list logo