background preloader

CIS150 & CIS151 C# I & II

Facebook Twitter

.NET Fiddle. 1000 C# Programs With Example Code and Output - Sanfoundry. This section covers the list of topics for C# programming examples.

1000 C# Programs With Example Code and Output - Sanfoundry

These C# examples cover a wide range of programming areas in Computer Science. Every example program includes the description of the program, C# code as well as output of the program. All examples are compiled and tested on Visual Studio. These examples can be as simple and basic as “Hello World” program to extremely tough and advanced C# programs. So, they are suitable for any user (dummies, beginners or advanced users). 1. The following collection contains various C# programs on mathematical operations, date and year formats, swapping and bitwise operations, interface, looping and numerical operations, access specifiers and various other programs on unboxing operation and sealed classes.

C# Basic Programming Examples. UML basics: The class diagram. This is the next installment in a series of articles about the essential diagrams used within the Unified Modeling Language, or UML.

UML basics: The class diagram

In my previous article on sequence diagrams, I shifted focus away from the UML 1.4 spec to OMG's Adopted 2.0 Draft Specification of UML (a.k.a. UML 2). In this article, I will discuss Structure Diagrams, which is a new diagram category that has been introduced in UML 2. Fitting the UML into Your Development Process. Fitting the UML into Your Development Process Paul GustavsonSimVentions, Inc.1025 Ficklen RoadFredericksburg VA Description: This session examines the Unified Modeling Language (UML), provides a primer on UML diagramming, and explains how the UML can be used to benefit managers, developers and, ultimately, end users.

Fitting the UML into Your Development Process

Prerequisites: Participants should have some familiarity with general software development processes. Abstract: Are you a manager of a software team that could benefit from more focus on requirements, design and testing but face reluctance from your team to do so? Use Case diagrams (and templates), Class diagrams, Object diagrams, Sequence diagrams, State diagrams, Collaboration diagrams, Activity diagrams, Component diagrams, Package diagrams and Deployment diagrams. C# 4.0 - Lesson 06: Introduction to Classes. Start Microsoft Visual Studio To create a new application, on the main menu, click File -> New Project In the middle list, click Empty Project Change the Name to DepartmentStore1 Click OK Like a variable, a class must have a name.

C# 4.0 - Lesson 06: Introduction to Classes

The name primarily follows the same rules as the variables. You can then add your own rules. In our lessons: If the name of a class is in one word, the first letter will be in uppercase. Microsoft Visual Studio provides many tools and visual objects used to manage classes of an application. Probably the best window to manage classes is called the Class View.

If the Class View is not yet displaying, on the main menu, you can click View -> Class View If the Class View is showing already, click its tab The Class View is made of six sections. The second part of the title bar is its toolbar The Class View New Folder button allows you to create and add a new folder to the project. Under the toolbar, there is another bar made of a combo box and a button. Class House { } A Visual Guide to Version Control. Version Control (aka Revision Control aka Source Control) lets you track your files over time.

A Visual Guide to Version Control

Why do you care? So when you mess up you can easily get back to a previous working version. You’ve probably cooked up your own version control system without realizing it had such a geeky name. Got any files like this? (Not these exact ones I hope). KalidAzadResumeOct2006.docKalidAzadResumeMar2007.docinstacalc-logo3.pnginstacalc-logo4.pnglogo-old.png It’s why we use “Save As”. Make a single backup copy (Document.old.txt).If we’re clever, we add a version number or date: Document_V1.txt, DocumentMarch2007.txtWe may even use a shared folder so other people can see and edit files without sending them over email. So Why Do We Need A Version Control System (VCS)? Our shared folder/naming system is fine for class projects or one-time papers.

Do you think the Windows source code sits in a shared folder like “Windows2007-Latest-UPDATED!!” Backup and Restore. Learn the Lingo Basic Setup Basic Actions Checkins. Class: Modifiers, Syntax and Concepts. .NET Array Dictionary List String 2D Async DataTable Dates DateTime Enum File For Foreach Format IEnumerable If IndexOf Lambda Parse Path Process Property Regex Replace Row Sort Split Static StringBuilder Substring Switch Tuple Window.

Class: Modifiers, Syntax and Concepts

Walkthrough: Shelving Source Control Items. This walkthrough shows you how to use the shelving feature in Team Foundation version control.

Walkthrough: Shelving Source Control Items

To get the latest items and build your project Open your solution in Visual Studio.In Solution Explorer, right-click your solution and select Get Latest Version (Recursive).On the Build menu, click Build Solution. Working with Source Control Changesets. Go to a changeset from Source Control Explorer In Source Control Explorer, press Ctrl + G.

Working with Source Control Changesets

The Go to Changeset dialog box appears. Type the number of the changeset and choose OK. If you don’t know the number, choose Find. Walkthrough: Exploring Team Foundation Source Control. This walkthrough demonstrates version control integration features in Visual Studio Team System Team Foundation Server.

Walkthrough: Exploring Team Foundation Source Control

This walkthrough describes how to use version control in the Visual Studio Team System Team Foundation Server IDE. In particular, you can learn how to complete the following tasks: To complete this walkthrough, you must have the Read and CheckIn permissions. To configure Visual Studio to use Team Foundation version control On the Tools menu, select Options.In the Options dialog box, locate Source Control, expand it, and then click Plug-in Selection.In the Current source control plug-in drop-down list, select Visual Studio Team Foundation Server.Click OK.

A workspace provides an isolated space where you can write and test your code. To create a new solution and project Next, you must use the Pending Changes window to check in your new solution files to version control. To check in pending changes for the solution to version control.