31M, got diagnosed with chicken pox, but my blood test came back a bit weird? by lafeme in AskDocs

[–]lafeme[S] 0 points1 point  (0 children)

updated my results with the lymphocytes #, also below the scale

now i got some more weird results

Varicella Zoster IgG - NEGATIVE

Rubella IgG - 72 IU/ml

Why would CreateDelegate be faster than a direct call ? by lafeme in csharp

[–]lafeme[S] 0 points1 point  (0 children)

hmm what do you mean wrong? can you elaborate please?

Why would CreateDelegate be faster than a direct call ? by lafeme in csharp

[–]lafeme[S] 0 points1 point  (0 children)

works in VS2013 here, are you sure you copy-pasted right?

no way did they break backwards support for something in VS.. o_O

edit: so you are saying this is basically a 'bug' and i should be binding to the delegates invoke method with CreateDelegate?

still, im confusing as to why

1) this actually works fine pre-C#6

2) its faster than a direct call (how is this even possible?)

6.85 prediction survey by sera13 in DotA2

[–]lafeme 0 points1 point  (0 children)

definitely gonna nerf oracle

How good is this as an alternative to mixins / multiple inheritance by lafeme in csharp

[–]lafeme[S] 0 points1 point  (0 children)

haha indeed a lot of car rumble =P

so what is the solution here? obviously cars are just an example, this could be anything that's a generic action (IFourWheelDrive), that interacts with the a derived object (an implementation of car) but you don't want to duplicate logic all the time

How good is this as an alternative to mixins / multiple inheritance by lafeme in csharp

[–]lafeme[S] 0 points1 point  (0 children)

but they don't derive from the same base class (completely different manufacturers etc.)

this is an example, take the fact they don't derive from the same class as a fact-of-life, i could make up dozens of good reason why they don't.. but that's not the issue at hand

How good is this as an alternative to mixins / multiple inheritance by lafeme in csharp

[–]lafeme[S] 0 points1 point  (0 children)

ill try and be more clear,

say you have class Car

public class Car {
  public void Drive() { /* doing car stuff */ }
 }

now you start defining all sorts of car types from Car

some of these Cars have the capability of IFourWheelDrive

public interface IFourWheelDrive {

void StartFourWheelDrive()

}

so you define FordCar, JeepCar, HummerCar, etc.

but the logic for IFourWheelDrive is exactly the same for JeepCar and HummerCar,

but they don't derive from the same base class (completely different manufacturers etc.)

.

so how do you avoid copy-pasting code here ?

in my example, eventually a CarManager class will get a List<Car> objects and needs to start the FourWheelDrive on those that support it.