Tag Info

New answers tagged

0

You need to include more information in your file. I would create a "header block" - a set of 64 bit numbers that give me the offset from the start of the file to each bit array, and the length of that bit array. I would end the header block with 8 bytes of all zeros. For example, offset1, len1 // offset1 is # bytes to start of bit array 1 offset2, ...


0

It is a real pity Microsoft defaults to Option Strict Off, although I sort of understand from their point of view. Yes, for any professional coding you ought to use Option Strict On, and only turn it off in files that need to use late-binding on Object. Nevertheless, once you have a large project where you want to turn Option Strict On you run into the ...


0

First off, yes. Using an IoC that way is an anti-pattern. You've got a global variable in disguise there. It is natural for dependencies to "bubble up" toward the entry point of the program and constructors grow in size. That's just the nature of the beast. However let's step back and ask ourselves a question. Why do we want DI to begin with? We want ...


2

The problem is that you are using 'Dim c As New C', instead of registering C in the IoC container and requesting it from there. The dependency C requests in DoSomething should be passed in the constructor, which IoC wires for you. What makes it a bit hard is the fact that your IoC container seems to be a Singleton and is therefore accessible from everywhere. ...



Top 50 recent answers are included