D
Dan H.
Hello,
Is there any advantage of using a struct or a class as part of
public delegate bool MyEvent(object source, SomeEventArgs e);
Struct:
public struct SomeEventArgs {
public float SomeFloat1;
public float SomeFloat2;
}
Class
public class SomeEventArgs {
public void SomeEventArgs {
}
public float SomeFloat1;
public float SomeFloat2;
}
Does this decision impact Garbage Collecting?
Execution Speed?
Thanks in advanced!!!
Dan
Is there any advantage of using a struct or a class as part of
public delegate bool MyEvent(object source, SomeEventArgs e);
Struct:
public struct SomeEventArgs {
public float SomeFloat1;
public float SomeFloat2;
}
Class
public class SomeEventArgs {
public void SomeEventArgs {
}
public float SomeFloat1;
public float SomeFloat2;
}
Does this decision impact Garbage Collecting?
Execution Speed?
Thanks in advanced!!!
Dan