Click here to Skip to main content
15,898,373 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: System Enumeration - CreateClassEnumerator Pin
Shameel10-Aug-11 9:14
professionalShameel10-Aug-11 9:14 
GeneralRe: System Enumeration - CreateClassEnumerator Pin
SarahJMR10-Aug-11 9:18
SarahJMR10-Aug-11 9:18 
GeneralRe: System Enumeration - CreateClassEnumerator Pin
Shameel10-Aug-11 9:22
professionalShameel10-Aug-11 9:22 
GeneralRe: System Enumeration - CreateClassEnumerator Pin
SarahJMR10-Aug-11 9:24
SarahJMR10-Aug-11 9:24 
Questionhi Pin
leila1234567896-Aug-11 0:08
leila1234567896-Aug-11 0:08 
Questionhi Pin
leila1234567896-Aug-11 0:06
leila1234567896-Aug-11 0:06 
AnswerRe: hi Pin
#realJSOP17-Aug-11 4:13
professional#realJSOP17-Aug-11 4:13 
QuestionNot... Is, or IsNot... Pin
Sander Rossel3-Aug-11 7:33
professionalSander Rossel3-Aug-11 7:33 
I recently had a discussion at work about the use of Not... Is or IsNot.
It seems there is no difference between the two, except that IsNot looks more like how you would say something.
For example:
VB
If something IsNot somethingElse Then
   ' code...
End If

However, I prefer Not... Is because that way you always know if something should be true or Not by looking at the beginning of a line of code, like so:
VB
If Not something Is somethingElse AndAlso
   something2 Is somethingElse2 AndAlso
   Not something3 Is somethingElse3 Then
   ' code...
End If

That code looks clean, because Not (or not Not) is always at the same spot in the line. If I would use IsNot that just as well might not be the case. So by using Not... Is you always know if a condition must be true or not without having to search for the IsNot in every line of code.
But Not... Is sounds a bit weird if you say it out loud.

Does it make any difference 'under the hood' or is it simply a personal preference?
All my colleagues prefer IsNot by the way :p
It's an OO world.

AnswerRe: Not... Is, or IsNot... Pin
Dave Kreskowiak3-Aug-11 8:52
mveDave Kreskowiak3-Aug-11 8:52 
GeneralRe: Not... Is, or IsNot... Pin
Sander Rossel3-Aug-11 20:16
professionalSander Rossel3-Aug-11 20:16 
GeneralRe: Not... Is, or IsNot... Pin
David Skelly3-Aug-11 22:01
David Skelly3-Aug-11 22:01 
GeneralRe: Not... Is, or IsNot... Pin
Dave Kreskowiak4-Aug-11 1:54
mveDave Kreskowiak4-Aug-11 1:54 
AnswerRe: Not... Is, or IsNot... Pin
#realJSOP17-Aug-11 4:14
professional#realJSOP17-Aug-11 4:14 
GeneralRe: Not... Is, or IsNot... Pin
Sander Rossel17-Aug-11 6:21
professionalSander Rossel17-Aug-11 6:21 
QuestionHow to get msn status Pin
Lighter Joul2-Aug-11 22:42
Lighter Joul2-Aug-11 22:42 
AnswerRe: How to get msn status - Repost Pin
Richard MacCutchan2-Aug-11 23:35
mveRichard MacCutchan2-Aug-11 23:35 
QuestionHow to reduce website responce time on production server Pin
rupendra_sharma8431-Jul-11 21:16
rupendra_sharma8431-Jul-11 21:16 
AnswerRe: How to reduce website responce time on production server Pin
Shameel31-Jul-11 22:10
professionalShameel31-Jul-11 22:10 
AnswerRe: How to reduce website responce time on production server Pin
jschell1-Aug-11 8:10
jschell1-Aug-11 8:10 
AnswerRe: How to reduce website responce time on production server Pin
Waleed Eissa2-Aug-11 2:51
Waleed Eissa2-Aug-11 2:51 
QuestionIs this pure WTF or am I being a bit harsh... Pin
ToddHileHoffer29-Jul-11 9:31
ToddHileHoffer29-Jul-11 9:31 
AnswerRe: Is this pure WTF or am I being a bit harsh... Pin
Ian Shlasko29-Jul-11 10:46
Ian Shlasko29-Jul-11 10:46 
GeneralRe: Is this pure WTF or am I being a bit harsh... Pin
ToddHileHoffer30-Jul-11 2:10
ToddHileHoffer30-Jul-11 2:10 
AnswerRe: Is this pure WTF or am I being a bit harsh... Pin
Abhinav S30-Jul-11 2:36
Abhinav S30-Jul-11 2:36 
GeneralRe: Is this pure WTF or am I being a bit harsh... [modified] Pin
ToddHileHoffer30-Jul-11 4:37
ToddHileHoffer30-Jul-11 4:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.