C# 1001 notes
6.51K subscribers
329 photos
9 videos
2 files
313 links
Регулярные короткие заметки по C# и .NET.

Просто о сложном для каждого.

admin - @haarrp
加入频道
Forwarded from SeasonedDev
Dear friend,

If you read this, then you, like me, are clearly passionate about programming and tech 💻

My name is Maxim and I'm happy to meet you here ✌️

I hope that what I post on this channel will take your software development skills to the next level.

💬 If you have any questions, then you can always contact me via the @webdev_en chat.

See you at the new channel: @seasoneddev
What will be the output of the following program?
Anonymous Quiz
41%
Error occurred!
47%
Index error occurred!
12%
Compile-time error
#post

.NET 6 is on the way, and I wanted to share some of my favorite new APIs in .NET and ASP.NET Core that you are going to love. Why are you going to love them? Well because they were directly driven by our fantastic .NET developer community! Let’s get started!

Read more...
#book

Beginning C# and .NET, 2021 Edition
Perkins Benjamin, Reid Jon D.

Get a running start to learning C# programming with this fun and easy-to-read guide.

As one of the most versatile and powerful programming languages around, you might think C# would be an intimidating language to learn. It doesn't have to be!

Download the book
Which of the following is the default access modifier of the class members?
Anonymous Quiz
18%
Public
57%
Private
22%
Internal
3%
Protected internal
What will be the output of the following program?
Anonymous Quiz
37%
True
53%
False
7%
Exception
3%
null
#video

Топ-10 докладов DotNext 2021 Piter

Список докладов и видео доступны по ссылке.

💬 Если вы по какой-то причине пропустили, то однозначно рекомендую.

p.s. Спасибо спикерам и организаторам ❤️
#post

For .NET 6, we have made FileStream much faster and more reliable, thanks to an almost entire re-write. For same cases, the async implementation is now a few times faster!

Read more...
#challenge

💻 Array of Multiples | #easy

Create a function that takes two numbers as arguments (num, length) and returns an array of multiples of num until the array length reaches length.

Examples:

ArrayOfMultiples(7, 5) ➞ [7, 14, 21, 28, 35]
ArrayOfMultiples(12, 10) ➞ [12, 24, 36, 48, 60, 72, 84, 96, 108, 120]
ArrayOfMultiples(17, 6) ➞ [17, 34, 51, 68, 85, 102]

For your convenience: dotnetfiddle.

🏆 Leave your solutions in the comments. The solution will be posted below in a couple of hours 👇

#interview
Here is a solution for the #challenge above

💬 Personally, I like the first solution more, it is much more expressive!
Which of the following is a reserved keyword in C#?
Anonymous Quiz
11%
abstract
5%
as
6%
foreach
77%
All of the above
What will be the output of the following program?
Anonymous Quiz
33%
100
3%
0
58%
Compile-time error
6%
Runtime error
#post

In this post, I'd like to have a look into minimal APIs.

With the preview 4, Microsoft simplified the simplest project template to an absolute minimum. Microsoft created this template to make it easier for new developers to start creating small microservices and HTTP APIs.

Read more...
#challenge

💻 Check if a Number is Prime | #easy

Create a function that returns true if a number is prime, and false otherwise. A prime number is any positive integer that is evenly divisible by only two divisors: 1 and itself.

The first ten prime numbers are: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29

Examples:

isPrime(31) ➞ true
isPrime(18) ➞ false
isPrime(11) ➞ true

For your convenience: dotnetfiddle.

🏆 Leave your solutions in the comments. The solution will be posted below in a couple of hours 👇

#interview
Here is a solution for the #challenge above
Which of the following data type should be used for monetary value?
Anonymous Quiz
5%
Long
8%
Float
15%
Double
71%
Decimal