Получи случайную криптовалюту за регистрацию!

C# 1001 notes

Логотип телеграм канала @csharp_1001_notes — C# 1001 notes C
Логотип телеграм канала @csharp_1001_notes — C# 1001 notes
Адрес канала: @csharp_1001_notes
Категории: Технологии
Язык: Русский
Количество подписчиков: 2.63K
Описание канала:

Регулярные короткие заметки по C# и .NET.
Просто о сложном для каждого.
admin - @notxxx1

Рейтинги и Отзывы

3.50

2 отзыва

Оценить канал csharp_1001_notes и оставить отзыв — могут только зарегестрированные пользователи. Все отзывы проходят модерацию.

5 звезд

1

4 звезд

0

3 звезд

0

2 звезд

1

1 звезд

0


Последние сообщения 7

2022-01-24 12:30:00
Explain Code Compilation in C#

There are four steps in code compilation which include:

Compiling the source code into Managed code by C# compiler.

Combining the newly created code into assemblies.

Loading the Common Language Runtime(CLR).

Executing the assembly by CLR.
360 views09:30
Открыть/Комментировать
2022-01-18 18:20:00
What will be the output of the following code snippet?
Anonymous Quiz
73%
0 1 2 3 4 5 6 7 8 9
9%
32333435363738394041
18%
Compile time Error
160 voters374 views15:20
Открыть/Комментировать
2022-01-18 18:20:00
373 views15:20
Открыть/Комментировать
2022-01-17 12:30:00
Explain type in C#

Anonymous types allow us to create a new type without defining them. This is way to defining read only properties into a single object without having to define type explicitly. Here Type is generating by the compiler and it is accessible only for the current block of code. The type of properties is also inferred by the compiler.
197 views09:30
Открыть/Комментировать
2022-01-11 18:20:00
What will be the output of the following code snippet?
Anonymous Quiz
4%
Runtime Error
16%
Compile time Error
66%
Division By Zero
14%
Infinity
101 voters268 views15:20
Открыть/Комментировать
2022-01-11 18:20:00
269 views15:20
Открыть/Комментировать
2022-01-10 12:30:01
In how many ways you can pass parameters to a method?

There are three ways that parameters can be passed to a method:

Value parameters − This method copies the actual value of an argument into the formal parameter of the function. In this case, changes made to the parameter inside the function have no effect on the argument.

Reference parameters − This method copies the reference to the memory location of an argument into the formal parameter. This means that changes made to the parameter affect the argument.

Output parameters − This method helps in returning more than one value.
261 views09:30
Открыть/Комментировать
2022-01-06 12:30:00 List some different ways for equality check in .NET

The ReferenceEquals() method - checks if two reference type variables(classes, not structs) are referred to the same memory address.

The virtual Equals() method. (System.Object) - checks if two objects are equivalent.

The static Equals() method - is used to handle problems when there is a null value in the check.

The Equals method from IEquatable interface.

The comparison operator == - usually means the same as ReferenceEquals, it checks if two variables point to the same memory address. The gotcha is that this operator can be override to perform other types of checks. In strings, for instance, it checks if two different instances are equivalent.
232 views09:30
Открыть/Комментировать
2022-01-04 18:20:00
What will be the output of the following code snippet?
Anonymous Quiz
64%
Compile error
19%
-2
10%
2
7%
0
99 voters252 views15:20
Открыть/Комментировать
2022-01-04 18:20:00
251 views15:20
Открыть/Комментировать