C# Beginner to advanced - Lesson 46 - Named and optional parameters

مجله خبری، آموزشی پرشین تک
منتشر شده در 11 خرداد 1397

Named and Optional Parameters

Named and optional parameters are really two distinct features.

They allow us to either omit parameters which have a defined default value, and/or to pass parameters by name rather than position.

Optional parameters allow us to omit arguments to members without having to define a specific overload matching

Named parameters are passed by name instead of relying on its position in the parameter list


ankpro

ankpro training

Asp.net MVC

C#

C sharp

Bangalore

Rajajinagar

Selenium

Coded UI

Mobile automation testing

Mobile testing

JQuery

JavaScript

.Net

Components of the .Net framework

Hello World

Literal

Keywords

Variable

Data types

Operators

Branching

Loops

Arrays

ArrayList

Strings

String Builder

Structures

Enums

Functions

Classes

Inheritance

Polymorphism

Properties

Indexers

Events

Nested Classes

Delegates

Anonymous methods

Labda expressions

Abstract classes

Exception Handling

Linq

Interfaces

Extension methods

Anonymous types

Generics

Collections

Garbage Collection

Reflection

Attributes

Input and output statements

Type casting

Partial Methods

Partial Classes

Boxing and Unboxing

Var vs Dynamic vs Object

دیدگاه کاربران