|
Write your own extension method, if it's that important to ya...
public static bool IsIn(this object obj, params object[] args)
{
foreach (object a in args)
if (obj == a) return true;
return false;
}
Or something like that.
|
|
|
|
|
Hi,
Look up "Contains" for a linq statement. That inserts an "IN" statement for SQL.
|
|
|
|
|
from p in Persons where new string[]{"Name1","Name2","Name3"}.Contains(p.FirstName) select p.Id
|
|
|
|
|
Hi
In ASP.Net how to get the end user host name when they make any request to my web site? So that i can filter them at HttpModule level by allowing people from one particular domain can only access my website.
|
|
|
|
|
|
My thingies aren't up , I got an error !
I know nothing , I know nothing ...
|
|
|
|
|
|
Then Raise Shields! Arm Photon Torpedoes! And Damn the Tribbles to hell!
Alternatively, you could try giving a little detail for those of us that can't read minds...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
Stark DaFixzer wrote: My thingies aren't up , I got an error !
Quoted for posterity. Now, what the hell are you on?
|
|
|
|
|
your thingies will hang around as always
|
|
|
|
|
See you doctor about a prescription for Viagra.
|
|
|
|
|
That's the problem, he did and now it's lasted for more than four hours
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
OK , I have a computer a white one
And I got that little software thing , and when I click it; it didn't work , I click it and didn't work
I click it and didn't work , I click and didn't work , I click and didn't work ,
I click it and didn't work , I click and didn't work , I click and didn't work
I click it and didn't work , I click and didn't work , I click and didn't work
all I got are some gibberish written over it now. It's gray
The little thing saying "OK". But I think it didn't talking the truth.
I know nothing , I know nothing ...
|
|
|
|
|
Stark DaFixzer wrote: I have a computer a white one
Why do we care what color computer you have?
Stark DaFixzer wrote: I click it and didn't work , I click and didn't work
Being vague once was more than enough.
Stark DaFixzer wrote: I got that little software thing
Care to be more specific?
Stark DaFixzer wrote: all I got are some gibberish written over it now
Strange, I'm getting the same thing.
Stark DaFixzer wrote: The little thing saying "OK". But I think it didn't talking the truth.
Sure it is. Everything will be ok. Just bring your towel and don't panic!
|
|
|
|
|
Put the drugs down and walk away from the computer. The voices will stop after a few hours...trust me.
|
|
|
|
|
hello
How can you compile say for example SomeProgram.exe, which references A.dll/B.dll/C.dll, into one single executable/exe which includes the dll as embedded resources as well (i.e. no separate dll, just single exe)
Thanks
dev
|
|
|
|
|
I think ILMerge will help you, but it works for .NET dll´s only.
|
|
|
|
|
|
In addition to Thomas Krojer's answer, if your DLLs are unmanaged than check out this[^] article.
In case of managed DLLs here[^] you can find a good resource for using ILMerge.
|
|
|
|
|
|
|
|
You are welcome!
|
|
|
|
|
i have bitmap that changes on run time.
each time the bitmap change i need to update the pictureBox that i have on my form.
I cant find a way to change the image on the pictureBox -
Each time i do
pictureBox.Image = myBitmap;
I get error.
What to do ?
|
|
|
|
|
Whats your myBitmap contains.
Use
pictureBox.Image = New System.Drawing.Bitmap("YourBitmapFilename.BMP");
|
|
|
|