|
blackblizzard wrote: Couldn't you just do this?
Hmm, I thought C# complained when you let it fall through like that, but it seems the compiler only complains when you have something under the first case above and no "break". That is, it expects that all the logic be placed on the bottom-most of the cases you fall through. Good to know... thanks!
blackblizzard wrote: GetType() is computationally expensive
Not sure if that's true. I know Reflection.Emit and dynamically building types and things of that sort are expensive, but I'm not sure GetType is all that expensive, as it is pretty much known at compile time. As far as derived classes, that shouldn't be any more expensive than other inherited method call. Depends on how .NET implements GetType under the hood, but I tend to think it would use the faster technique. The string comparison done during the switch statement could slow things down marginally, but when you are dealing with exception cases, you typically don't need to worry about speed (assuming you are not using exceptions to control the typical flow of your program).
blackblizzard wrote: I'll just use a method.
Good choice.
|
|
|
|
|
aspdotnetdev wrote: Hmm, I thought C# complained when you let it fall through like that, but it seems the compiler only complains when you have something under the first case above and no "break". That is, it expects that all the logic be placed on the bottom-most of the cases you fall through. Good to know... thanks!
Sure!
aspdotnetdev wrote: Not sure if that's true. I know Reflection.Emit and dynamically building types and things of that sort are expensive, but I'm not sure GetType is all that expensive, as it is pretty much known at compile time. As far as derived classes, that shouldn't be any more expensive than other inherited method call. Depends on how .NET implements GetType under the hood, but I tend to think it would use the faster technique. The string comparison done during the switch statement could slow things down marginally, but when you are dealing with exception cases, you typically don't need to worry about speed (assuming you are not using exceptions to control the typical flow of your program).
I read somewhere in the msdn site that although GetType and typeof are considerably less expensive than all other reflection methods they don't come particularly cheap (I'd post a link, but I haven't been able to find my reference). Although you're right that this is a case where an exception has been thrown, so we're not really concerned about performance.
|
|
|
|
|
Check out this page. It seems you can do on the order of 10 to 100 million GetType()'s a second. I suppose whether or not that is "cheap" is subjective.
|
|
|
|
|
Great to know, thanks
|
|
|
|
|
Hi,
My application automatically sends email messages using System.Net.Mail.MailMessage and System.Net.Mail.SmtpClient. However, the sent emails are not kept on the mail server.
Is there a way of doing so?
Thanks,
Eyal.
|
|
|
|
|
Hi !
This depends on your mail-server.
At our mail system I installed a seperate mail address and use
the BCC to send an extra copy to this address.
> System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage()
> string mail_bcc_address = "dummy@myfirm.de";
> mail.CC.Add(new MailAddress(mail_bcc_address));
Best regards,
Gerrit
|
|
|
|
|
first of all use POP control protocol for send mail because it provide facility to send mail as well as store mail..
and SMTP protocol only use for send mail...
after that for save mail use fileupload control for save mail at server side in folder
If You Get your answer then please Rating me...
Thanks..
"Are You Ready"
DX-ARMY
|
|
|
|
|
DX Roster wrote: first of all use POP control protocol for send mail because it provide facility to send mail as well as store mail..
Incorrect. Protocols POP (POP3) and IMAP are used for retrieve emails. Usably ISP doesn't support IMAP. IMAP doesn't erase emails automaticly unless it was specified. SMTP is used for only sending emails, While POP or IMAP are only for retrieving emails,
|
|
|
|
|
Thank you.
So how can I send message that will be saved in the "sent items" folder? In worst case I'll add myself as recipient (regular or CC or BCC), but it's a bit dirty...
Eyal.
|
|
|
|
|
This depends on your mail-server.
Have you tried using a client such as thunderbird or outlock to test if it is possible?
Some mail server support settings such as GMail.
eyalbi007 wrote: I'll add myself as recipient (regular or CC or BCC), but it's a bit dirty...
Yes, and also the one who recieves it, also will see it your CC and BCC
|
|
|
|
|
hi to all
i need "audio sound suite for .net crack" because
i live in iran, i like purchase this product but in iran
don't exist way for buy this product.
anyone can help me...
|
|
|
|
|
Does it even exist? Google thinks it doesn't
|
|
|
|
|
yes, doesn't exist !!!!!!!
iran don't accept copy right law
they want me credit card or ...
but i don't have...
can you guide me?
|
|
|
|
|
How am I supposed to guide you to something that doesn't appear to exist
Now I don't know what you're doing, but the pirate bay is usually not a bad place to start looking for something..
|
|
|
|
|
It does exist here[^]. Top of the list from Google search results.
|
|
|
|
|
Well that's not the crack..
|
|
|
|
|
For non-existant products, you're supposed to provide non-guidance..45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Actually it is, it's not on TPB
|
|
|
|
|
Fatemi wrote: iran don't accept copy right law
The rest of the world does.
Even if we knew of the software to get around "Audio Sound Suite for .NET" protection, given that most of us are professional software developers, who get paid as a result of people who pay money for software products, I think is unlikely that anyone here would tell you.
That is assuming that the owners of this site would be happy to have such information posted here. Which I also strongly doubt.You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
Fatemi wrote: they want me credit card or ...but i don't have...
There are prepaid online credit cards, where you only have to transfer an amount of money to this vendor. After the transfer you have access to an online credit card that works like any normal credit card (but everything you can spend with this card is prepaid).
So I think "you have no credit card" is no reason to ask for some crack.Greetings
Covean
|
|
|
|
|
Just because Iran does not have copy right laws does not give you the right to steal software from other countries that do have those laws.
I suggest you contact MultiMedia Soft, who I believe are the authors of the software you are after, and ask about some alternative mode of payment.
|
|
|
|
|
The Man from U.N.C.L.E. wrote: Just because Iran does not have copy right laws does not give you the right to steal software from other countries that do have those laws.
Actually, it does. Copyright is a national thing - for now.
|
|
|
|
|
He's talking about the moral right, not necessarily the legal one. It's theft; plain and simple, and I am voting for removal of this question."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
A "plz send me the crack" should definitely not be in a C# forum, at least
|
|
|
|
|
As Pete correctly said, I was refering moral right.
Having said that there is considerable debate among the legal profession worldwide as to which country has jurisdiction on web publicised material. I believe the current trend in the debate is that the copyright laws of the country hosting the data/website are the ones that apply. I am aware that Iran has no copyright agreements with any other countries at present, and therefore it would not be possible to inforce the laws via reciprical copyright law. However, as the hosting country concerned is Italy, and their laws would definately be broken it would mean an effective ban from the country if discovered. Goodbye to holidays in Venice. Italy is somewhat draconian in it's copyright infringement penalties I believe.
Back to the moral right, would you want someone stealing your code? As a rule I do not use pirated software (saves getting nasty visuses from dodgy download sites as well).
|
|
|
|