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

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


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

2022-03-30 17:35:00
Which of the following operators cannot use operator overloading?
Anonymous Quiz
14%
operator ++
11%
operator &
11%
operator ||
64%
operator true
205 voters699 views14:35
Открыть/Комментировать
2022-03-29 18:20:00
What is difference between late binding and early binding in C#?

Early Binding or Static Binding. The name itself describes that compiler knows about what kind of object it is, what are all the methods and properties it contains. As soon as you declared the object, .NET Intellisense will populate its methods and properties on click of the dot button.

Late Binding or Dynamic Binding. The name itself describes that compiler does not know what kind of object it is, what are all the methods and properties it contains. You have to declare it as an object, later you need get the type of the object, methods that are stored in it. Everything will be known at the run time.
719 views15:20
Открыть/Комментировать
2022-03-24 17:19:00 ​​ What do the following acronyms in .NET stand for: IL, CIL, MSIL, CLI and JIT?

IL
, or Intermediate Language, is a CPU independent partially compiled code. IL code will be compiled to native machine code using current environmental properties by Just-In-Time compiler (JIT). JIT compiler translates the IL code to an assembly code and uses the CPU architecture of the target machine to execute a .NET application. In .NET, IL is called Common Intermediate Language (CIL), and in the early .NET days it was called Microsoft Intermediate Language (MSIL).

CLI, or Common Language Infrastructure, is an open specification developed by Microsoft. It is a compiled code library used for deployment, versioning, and security. In .NET there are two CLI types: process assemblies (EXE) and library assemblies (DLL). CLI assemblies contain code in CIL, and as mentioned, during compilation of CLI programming languages, the source code is translated into CIL code rather than into platform or processor specific object code.

To summary:
- When compiled, source code is first translated to IL (in .NET, that is CIL, and previously called MSIL).
- CIL is then assembled into a bytecode and a CLI assembly is created.
- Before code execution, CLI code is passed through the runtime’s JIT compiler to generate native machine code.
- The computer’s processor executes the native machine code.
808 views14:19
Открыть/Комментировать
2022-03-23 17:35:00
If you run C# executable file multiple times, multiple processes are created. If you want to have only one application process even if you launch multiple times, what can you use?
Anonymous Quiz
20%
Semaphore
42%
Mutex
11%
Critical Section
28%
C# lock
173 voters710 views14:35
Открыть/Комментировать
2022-03-22 18:20:00
What interface should your data structure implement to make the Where method work?

Implementing IEnumerable makes using foreach and where possible.

IEnumerable interface contains the System.Collections.Generic namespace.

IEnumerable interface is a generic interface which allows looping over generic or non-generic lists.

IEnumerable interface also works with linq query expression.

IEnumerable interface Returns an enumerator that iterates through the collection.
692 views15:20
Открыть/Комментировать
2022-03-17 17:19:00 ​​ Explain what inheritance is, and why it’s important

Inheritance is one of the most important concepts in object-oriented programming, together with encapsulation and polymorphism. Inheritance allows developers to create new classes that reuse, extend, and modify the behavior defined in other classes. This enables code reuse and speeds up development. With inheritance, developers can write and debug one class only once, and then reuse that same code as the basis for the new classes. The class whose members are inherited is called the base class, and the class that inherits those members is called the derived class. By default, all classes in .NET are inheritable.
852 views14:19
Открыть/Комментировать
2022-03-16 17:35:00
Which of the following statements is not valid to create new object in C#?
Anonymous Quiz
12%
var a = new Int32();
6%
var a = new String();
59%
var a = new IComparable();
24%
var a = new [] {0};
217 voters767 views14:35
Открыть/Комментировать
2022-03-15 18:20:00
Test if a Number belongs to the Fibonacci Series

A positive integer ω is a Fibonacci number if and only one of:

5ω^2 + 4 and

5ω^2 - 4

is a perfect square or a square number.

A square number is the result when a number has been multiplied by itself.
743 views15:20
Открыть/Комментировать
2022-03-01 18:20:00
Why to use of the IDisposable interface?

The "primary" use of the IDisposable interface is to clean up unmanaged resources. Note the purpose of the Dispose pattern is to provide a mechanism to clean up both managed and unmanaged resources and when that occurs depends on how the Dispose method is being called.
311 views15:20
Открыть/Комментировать
2022-02-22 19:20:00
The answer to the previous question is: yes, you can catch System.Exception and switch on the exception types.
326 views16:20
Открыть/Комментировать