Clear
Deals
arrow drop down icon

C# Code

- 25 results found
Filter
Take your first steps with C# - Learn | Microsoft Docs

Write your first C# code. Get started by writing tiny code examples to learn the basics of the C# syntax! Store and retrieve data using literal and variable values in C#. Use data in your applications by creating literal values and variable values of different data types.

Code
docs.microsoft.com
23 People Used
Get This Coupon
C# code snippets - Visual Studio | Microsoft Docs

C# code snippets. 06/05/2017; 4 minutes to read +5; In this article. Code snippets are ready-made snippets of code you can quickly insert into your code. For example, the for code snippet creates an empty for loop. Some code snippets are surround-with code snippets, which enable you to select lines of code, and then choose a code snippet which ...

Save
docs.microsoft.com
17 People Used
Get This Code
C Sharp (programming language) - Wikipedia

C# makes use of reification to provide "first-class" generic objects that can be used like any other class, with code generation performed at class-load time. Furthermore, C# has added several major features to accommodate functional-style programming, culminating in the LINQ extensions released with C# 3.0 and its supporting framework of ...

Best
en.wikipedia.org
19 People Used
Get This Coupon
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# ...

Sale
sanfoundry.com
46 People Used
Get This Code
C# Coding Conventions - C# Programming Guide | Microsoft Docs

C# Coding Conventions (C# Programming Guide) 07/20/2015; 8 minutes to read +8; In this article. Coding conventions serve the following purposes: They create a consistent look to the code, so that readers can focus on content, not layout. They enable readers to understand the code more quickly by making assumptions based on previous experience.

Free
docs.microsoft.com
10 People Used
Get This Coupon
C# Interface - W3Schools

2) C# does not support "multiple inheritance" (a class can only inherit from one base class). However, it can be achieved with interfaces, because the class can implement multiple interfaces. Note: To implement multiple interfaces, separate them with a comma (see example below).

Save
w3schools.com
36 People Used
Get This Coupon
Learn C# | Codecademy

C# is one of the most popular programming languages and can be used for a variety of things, including mobile applications, game development, and enterprise software. Knowing C# opens a great deal of doors for you as a developer.

Offer
codecademy.com
0 People Used
Get This Code
C# Tutorial For Beginners

C# is an open source, modern, flexible, versatile, and object-oriented programming language. This C# tutorial is for beginners who want to learn C# programming. In this C# tutorial, you'll learn to write your first C# application, learn about C# data types, C# array, C# string, C# dictionary, C# collections, and other C# features and functionalities.

Sale
c-sharpcorner.com
8 People Used
Get This Coupon
C# - Visual Studio Marketplace

The C# extension is powered by OmniSharp. Get Started Writing C# in VS Code. Documentation; Video Tutorial compiling with .NET Core; Note about using .NET Core 3.1.401 or .NET 5 Preview 8 SDKs on Mono platforms. Because of the new minimum MSBuild version requirement of these new SDKs, it will be necessary to use the Mono packaged with the C# ...

Sale
marketplace.visualstudio.com
13 People Used
Get This Coupon
C# If ... Else - W3Schools

C# Conditions and If Statements. C# supports the usual logical conditions from mathematics: Less than: a < b Less than or equal to: a <= b Greater than: a > b Greater than or equal to: a >= b Equal to a == b; Not Equal to: a != b You can use these conditions to perform different actions for different decisions.

Code
w3schools.com
30 People Used
Get This Coupon
ASP.NET Razor - C# and VB Code Syntax - W3Schools

Server code can create dynamic HTML content on the fly, before it is sent to the browser. Seen from the browser, the HTML generated by server code is no different than static HTML content. ASP.NET web pages with Razor syntax have the special file extension cshtml (Razor using C#) or vbhtml (Razor using VB).

Offer
w3schools.com
0 People Used
Get This Code
Introducing C# Source Generators | .NET Blog

The main difference is that Type Providers are a part of the F# language proper and emit types, properties, and methods in-memory based on an external source. Source Generators are a compiler feature that analyzes C# source code, optionally with other files, emits C# source code to include back into a compilation.

Best
devblogs.microsoft.com
42 People Used
Get This Coupon
Code Contracts | Microsoft Docs

Code Contracts. 09/05/2018; 13 minutes to read +5; In this article. Code contracts provide a way to specify preconditions, postconditions, and object invariants in your code. Preconditions are requirements that must be met when entering a method or property. Postconditions describe expectations at the time the method or property code exits.

Offer
docs.microsoft.com
43 People Used
Get This Code
Code Converter C# to VB and VB to C# - Telerik

Telerik Code Converter by Progress is free online code converter from C# to VB and from VB to C#. No registration required. Check it out.

Gift
converter.telerik.com
9 People Used
Get This Code
C# Examples

Welcome to C# Examples. This site is focused on simple straightforward code examples suitable for copy and paste. You can subscribe to RSS feed . Recent Examples. 2016-05-15 - [C#] LINQ Aggregation Methods - Sum, Max, Min, Count, LongCount, Average, Aggregate;

Free
csharp-examples.net
40 People Used
Get This Coupon
C# Online Compiler | .NET Fiddle

Test your C# code online with .NET Fiddle code editor.

Hot
dotnetfiddle.net
28 People Used
Get This Coupon
C# - Basic Syntax - Tutorialspoint

C# Keywords. Keywords are reserved words predefined to the C# compiler. These keywords cannot be used as identifiers. However, if you want to use these keywords as identifiers, you may prefix the keyword with the @ character. In C#, some identifiers have special meaning in context of code, such as get and set are called contextual keywords.

Gift
tutorialspoint.com
2 People Used
Get This Coupon
C# - Data Types - Tutorialspoint

The Object Type is the ultimate base class for all data types in C# Common Type System (CTS). Object is an alias for System.Object class. Object is an alias for System.Object class. The object types can be assigned values of any other types, value types, reference types, predefined or user-defined types.

Code
tutorialspoint.com
4 People Used
Get This Coupon
Convert VB.NET to/from C# online - Roslyn Code Converter

Completely free and open source code converter. Convert snippets online, or download the Visual Studio Extension to convert whole projects/solutions and increase conversion accuracy.

Save
codeconverter.icsharpcode.net
7 People Used
Get This Code
Sending Email using C# - C# Corner

In this article, I'm going to explain how you can send the data displayed in GridView in a table format in an email using C#. This code can be used in any any desktop or Web application. In our case, I'm going to create a Windows Forms application.

Best
c-sharpcorner.com
36 People Used
Get This Coupon
First C# Program

C# Code Structure. Let's understand the above C# structure. Every .NET application takes the reference of the necessary .NET framework namespaces that it is planning to use with the using keyword, e.g., using System.Text. Declare the namespace for the current class using the namespace keyword, e.g., namespace CSharpTutorials.FirstProgram

Sale
tutorialsteacher.com
44 People Used
Get This Coupon
Working With C# Arrays - C# Corner

In C#, arrays can be declared as fixed-length or dynamic. A fixed-length array can store a predefined number of items. A dynamic array does not have a predefined size. The size of a dynamic array increases as you add new items to the array. You can declare an array of fixed length or dynamic. You can even change a dynamic array to static after it is defined.

Free
c-sharpcorner.com
45 People Used
Get This Coupon
How to benchmark C# code using BenchmarkDotNet | InfoWorld

The reason is that during compilation the code is optimized differently for both debug and release modes. The C# compiler does a few optimizations in release mode that are not available in debug mode.

Code
infoworld.com
0 People Used
Get This Code
C# - Methods - Tutorialspoint

C# - Methods - A method is a group of statements that together perform a task. Every C# program has at least one class with a method named Main. ... Following code snippet shows a function FindMax that takes two integer values and returns the larger of the two. It has public access specifier, so it can be accessed from outside the class using ...

Offer
tutorialspoint.com
50 People Used
Get This Coupon
How to run c# code within Visual Studio Code - mwpreston.net

If you have reached this point then a big congrats is in order - you have successfully setup your VS Code instance to run c# code! Building and Running. To build our test project let's go ahead and run 'dotnet build' within our terminal. And likewise, to run the project code, simply execute 'dotnet run' within the terminal.

Gift
blog.mwpreston.net
21 People Used
Get This Code
Shop deals for