Access over 20 million homework & study documents

Visual Basic .Net Transfer Techniques

Content type
User Generated
Type
Homework
Rating
Showing Page:
1/3
Visual Basic.Net and C# programming techniques cannot be transferred with each other.
At a functionality level, C# poses a few things that VB.NET does not (multi-line lambdas are a
big feature), and VB.NET has some characteristics that C# does not (like discretionary and
named constraints, which are vital). VB is simplest and easiest to get things done than the C #.
Visual basic supports implicit late binding, XML literals, better symbols than C# that are easy to
remember (and, or, not, etc) and case insensitive. VB has out-of-the-box code snippets and Auto-
correction work better for VB than C#. C # has unidentified methods, yield keyword with iterator
blocks, out-of-the-box refactoring tools, stupid symbols one can forget (&&, ==, + etc) and case
sensitive, ending each line with the semi-colon. The order of words in a C# variable declaration
is incorrect.
Visual Basic is a better programming language compared to Visual C#. For example
Both VB and C# have a method of testing mutually exclusive possibilities,
the Select Case and Switch clauses correspondingly. Only one of them works accurately.
A Visual Basic Select Case clause returns a narrative of how old someone is. The age range for a
young person is a bit liberal, revealing the age of the person.
Select Case Age Entered
Case Is < 18
txtVerdict.Text = "child"
Case Is < 50
txtVerdict.Text = "young person"
Case Is < 65

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/3
txtVerdict.Text = "middle-aged"
Case Else
txtVerdict.Text = "elderly"
End Select
Someone cannot do this with Switch in C#. It is surprise to say that C# cannot handle
relational operators. You have to use an If /Else If clause as an alternative. But though you can
use but you have to type in a lot of redundant Break statements. For example:
Switch (AgeThreshold) {
case 18:
txtVerdict.Text = "child";
break;
case 50:
txtVerdict.Text = "young-person";
break;
case 65:
txtVerdict.Text = "middle-aged";
break;
default:
txtVerdict.Text = "elderly";
break ;}

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/3

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
Visual Basic.Net and C# programming techniques cannot be transferred with each other. At a functionality level, C# poses a few things that VB.NET does not (multi-line lambdas are a big feature), and VB.NET has some characteristics that C# does not (like discretionary and named constraints, which are vital). VB is simplest and easiest to get things done than the C #. Visual basic supports implicit late binding, XML literals, better symbols than C# that are easy to remember (and, or, not, etc) and case insensitive. VB has out-of-the-box code snippets and Auto-correction work better for VB than C#. C # has unidentified methods, yield keyword with iterator blocks, out-of-the-box refactoring tools, stupid symbols one can forget (&&, ==, + etc) and case sensitive, ending each line with the semi-colon. The order of words in a C# variable declaration is incorrect.  Visual Basic is a better p ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
I use Studypool every time I need help studying, and it never disappoints.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4