Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

IsNullOrEmpty VS IsNullOrWhitespace

Name: Anonymous 2012-05-08 21:01

String.IsNullOrEmpty
VS
String.IsNullOrWhiteSpace

Name: Anonymous 2012-05-08 21:15

ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu ɹɐƃƃıu

Name: Anonymous 2012-05-08 21:21

That looks like Cocktothorpe, so NO THANK YOU

Name: Anonymous 2012-05-09 1:40

XX.isYY
encapsulating what could have just as easily been done directly

HAX

Name: Anonymous 2012-05-09 7:06

String.IsNullOrEmpty(nigger.Trim());

Name: Anonymous 2012-05-09 8:36

neither:

(String && *String)

Name: Anonymous 2012-05-09 8:37

>>6
||

Name: Anonymous 2012-05-09 8:57

>>6,7
(!String || !*String)

Name: Anonymous 2012-05-09 14:42

Also, is NULL always 0 ? I've heard it could be something else, depending on the platform.

Name: Anonymous 2012-05-09 14:56

>>9

It can be, but the compiler has to interpret (NULL) == 0 and if(ptr) as if it were.

Name: Anonymous 2012-05-09 14:59

>>9
http://c-faq.com/null/machexamp.html

>>10
You don't know what the fuck you're talking about.

Name: Anonymous 2012-05-09 15:48

String.IsNullOrUndefined

Name: Anonymous 2012-05-09 16:23

>>11
u hain't red no scip 2day hav u? u shud reed 3.2.2.3 of THE STANDARD

Well, I would love to stay and chat by throwing in some fluffers about the economy, russia, and a whole lot of other stupid shit but I must part.

Name: Anonymous 2012-05-09 17:17

>>13
3
Terms, definitions, and symbols

.2
alignment
requirement that objects of a particular type be located on storage boundaries with addresses that are particular multiples of a byte address

.2.3
Not present.
Good job proving >>11 wrong there, champ.

Name: Anonymous 2012-05-09 18:13

>>14
Oh boy, oh boy!

3.2.2.3 in C89
6.3.2.3 in C99 and C11

Name: Anonymous 2012-05-09 18:58

Objection! Panjo Batterson here; back from my temporary vacation.

It seems that Mr. 10's point was that, regardless of a null pointer's internal representation, it will always compare equal to 0. The examples provided by Mr. 10 hold up in The Court of C according to the sections referred by Mr. 15 in THE STANDARDS (which indeed confirm Mr. 10's supposed point), and so Mr. 11's bold claim that Mr. 10 doesn't know what he is talking about is false.

Any objections to my objection? If not, I consider this case closed. *Bangs a plastic mallet on my desk*

Name: Anonymous 2012-05-09 19:24

>>9
NULL is defined to be a null pointer constant so it's either 0 or ((void *) 0), if you convert it to a pointer type then you get a null pointer.

I believe what you're actually wondering about is answered in >>11-san's link.

Name: Anonymous 2012-05-09 19:28

>>15
Still doesn't back you up. There's a difference between NULL and an actual null pointer.

Name: Anonymous 2012-05-09 19:43


   ∧_∧
  ( ´∀`)< ぬるぽ

Name: Anonymous 2012-05-09 20:00

glad you think that way. but making a habit of fapping has been scientifically proven to be healthy and reduce certain kinds of cancer like prostate cancer. lots of ppl in my family have had prostate cancer....i wish i could fap a lot, but i take a lot of antipsychotics and antidepressants that make it a very hard thing to do. I usually can't do it without perverted Touhou material.lol << May the Flying Spaghetti Monster bless you!!! i've enjoyed arguing with ya

Name: Anonymous 2012-05-09 20:41

>>20
This kopipe is so low-quality it is actually copy pasta.

Name: Anonymous 2012-05-09 22:32

Check.Em(Dubz[0].Value.ToString().Trim());

Name: Panjo Batterson 2012-05-10 3:22

>>18
See Mr. 16, buddy. *Starts playing the Banjo*

Name: Anonymous 2012-05-10 3:26

>>23
See >>18. You're wrong.

Name: Anonymous 2012-05-10 3:44

String.IsNullOrWhiteSpace
.NET 4 only, would not bang.

Name: Anonymous 2012-05-10 7:10

>>24
You win this round, Sage the Mage.

Name: bampu pantsu 2012-05-29 4:51

bampu pantsu

Don't change these.
Name: Email:
Entire Thread Thread List