검색 결과
  1. 16시간 전

    The !! operator won't be in C# 11, but if you're looking for a compact way to validate arguments (not just against null values!), try out the Guard class from CommunityToolkit.Diagnostics! Lots of APIs to make argument validation simple 🙌

  2. 5시간 전

    I'm getting tired of new features. When are we going to get a version that deletes old features?

  3. 4월 16일
  4. 4월 17일
  5. 4월 13일

    ¿Sabes cómo construir cadenas de texto multilínea (verbatim) en C#? 🤔 No te preocupes, te lo explica en este vídeo: 👉

  6. 10시간 전

    🤝 Like variables, collections can hold values of "like-things" 🤓 Store a list of friends, favorite movies, or snacks.

    Collections can hold many of
the same type of value, from
numbers, strings, and
booleans.

Use collection types like
Array, List, Dictionary, and
many more.

C# Code:

var count = new intl] { 1, 2, 3 };
var List = new List<int> { 4, 5, 6 };
var dictionary new Dictionary<string, int>
{
    { "Nicole", 1 },
    { "Khalid", }
};

check out abuhakmeh.com for more .NET content.
  7. 3월 25일

    "Está bien para facilitar el comienzo de los más novatos en la plataforma, pero es un arma de doble filo: también facilita que aprendan perdiendo algunos conceptos de vista que son muy importantes." Más aquí ▸▸

  8. 4월 18일
  9. 4월 15일
  10. 4월 5일
  11. 14시간 전

    💡 TIL about the new Raw Strings in C# 11. A clean way to have special characters in a string, without the need to escape them. It also works with interpolation. Pay attention to the indentation of the quotes, they are required to be aligned!

  12. 4월 18일

    📖 Reading from files is an essential part of any programming language. 🤓 Read text from a file using File and StreamReader

    Reading From A File

Reading the contents of a
file using C# is as easy as
three lines of code:

1. Open (or create) the file
2. Create a reader
3. Read the contents

Awesome!

C# Example Code:

using static System.IO.FileMode;

await using var file
File.Open("hello.txt", Open);

using var reader = new StreamReader(file);
var content = await reader. ReadToEndAsync();
  13. 4월 18일

    🌊 C# tip: Sort() vs OrderBy() 🌊 They both sort items in a list. But with a few differences. 🐶 Sort • In-place (say goodbye to immutability) • Uses default sorting 🐱 OrderBy • creates a new list • you can choose the sorting rule ...and more!

  14. 4월 13일

    Almost broke everything when trying to prepare for introduction of saves. Lessons learned: static fields and lambdas can make troubles when serializing. There are no saves yet, but state of game story can be written to file now.

  15. 16시간 전

    , Is it possible to get the size of the largest free chunk available in the Large Object Heap? I'm getting OutOfMemoryExceptions with over 2GB "free". (Switching over to ArrayPool<T> now...)

  16. 4월 20일

    ¿Se ha vuelto demasiado complejo C#? 🤔, además de abrir un debate, este excelente post de nuestro tutor da un repaso tremendo a la evolución del lenguaje. No te lo querrás perder 👉

로딩하는데 시간이 지연되고 있습니다.

트위터의 트래픽이 폭주했거나 일시적인 문제가 발생했을 수 있습니다. 다시 시도하거나 트위터 상태 페이지를 방문하여 자세한 내용을 확인해 보세요.