Everything C#
Everything C#
  • Видео 33
  • Просмотров 253 201
Property name from lambda expression in C#
A common pattern in C# is to pass a property name by using a lambda expression as the parameter. This video shows how to extract that property name from the passed in lambda expression.
The crucial code you need is the following:-
var expression = (MemberExpression)action.Body;
string propertyName = expression.Member.Name;
Effective C# answers common questions about the C# language and the dotnet ecosystem. If you have a programming question about C# or .net then add it as a comment below.
GitHub: github.com/ComponentFactory/CSharpAnswers
Просмотров: 893

Видео

Unleash the Full Potential of C# with These List Patterns
Просмотров 758Год назад
C# has introduced list patterns that allow for simpler, more concise and readable code. Combining existing patterns such as discard, property, logical and so forth makes pattern matching more powerful than ever.
Visual Studio Code and C#: Getting started using these 6 extensions
Просмотров 26 тыс.Год назад
To get the perfect setup for C# and Visual Studio Code you need the 6 extensions outlined in this video. Plus, an extra setting that few know but everyone should be using. 1: C# 2: C# Extensions 3: .NET Code Test Explorer 4: Rosylnator 5: Better Comments 6: CodeSnap
C# Syntactic Sugar: The Secret Ingredient
Просмотров 608Год назад
Syntactic sugar is the secret ingredient that enables the C# compiler to add new features without needing to make changes to the underlying tooling, such as the CLR, JIT, AOT compiler and others. Link: sharplab.io
Visual Studio Code vs Visual Studio
Просмотров 179 тыс.2 года назад
Deciding on Visual Studio or Visual Studio Code is not just a personal decision but based on the best option for the operating system and application type you are building. VS Code: code.visualstudio.com/ Visual Code: visualstudio.microsoft.com/
Chunk your LINQ results in C#
Просмотров 5302 года назад
Process your LINQ results in chunks by using this little known operator. Effective C# answers common questions about the C# language and the dotnet ecosystem. If you have a programming question about C# or .net then add it as a comment below. GitHub: github.com/ComponentFactory/CSharpAnswers
Add index to LINQ results in C#
Просмотров 4452 года назад
You can add an index to the results of a LINQ query by using this simple trick. Effective C# answers common questions about the C# language and the dotnet ecosystem. If you have a programming question about C# or .net then add it as a comment below. GitHub: github.com/ComponentFactory/CSharpAnswers
Shuffle any list in C#
Просмотров 1,3 тыс.2 года назад
This handy LINQ extension method provides any easy way to shuffle any IEnumerable list of items. For example, values for a deck of cards or any other type in your application, such as Unity. Effective C# answers common questions about the C# language and the dotnet ecosystem. If you have a programming question about C# or .NET then add it as a comment below. GitHub: github.com/ComponentFactory/...
Compiler internals for the record type in C#
Просмотров 2422 года назад
See the code the compiler generates for record types to really understand how they work in C#. C# Answers provides answers to common questions about the C# language and the related .NET system. Do you have a programming question about C# or .NET that you would like answered? Add it as a comment below and I try to answer them all! GitHub: github.com/ComponentFactory/CSharpAnswers
Using IDisposable in C#
Просмотров 3,2 тыс.2 года назад
Implement the IDisposable interface when you have managed or unmanaged resources that need cleaning up without waiting for the garbage collector to run. C# Answers provides answers to common questions about the C# language and the related .NET system. Do you have a programming question about C# or .NET that you would like answered? Add it as a comment below and I try to answer them all! Microso...
Paging results from LINQ in C#
Просмотров 5902 года назад
You often need to add paging to a query so the application user can see the results in a table and then move page by page through the data. C# Answers provides answers to common questions about the C# language and the related .NET system. Do you have a programming question about C# or .NET that you would like answered? Add it as a comment below and I try to answer them all! GitHub: github.com/C...
GroupBy multiple properties in LINQ C#
Просмотров 2,8 тыс.2 года назад
Sometimes you need to perform a LINQ GroupBy using more than a single property. This video will demo how to do this in C#. C# Answers provides answers to common questions about the C# language and the related .NET system. Do you have a programming question about C# or .NET that you would like answered? Add it as a comment below and I try to answer them all! GitHub: github.com/ComponentFactory/C...
Required keyword in C# 11
Просмотров 2732 года назад
The 'required' keyword allows you to reduce the boilerplate code in your projects by using object initialization. C# Answers provides answers to common questions about the C# language and the related .NET system. Do you have a programming question about C# or .NET that you would like answered? Add it as a comment below and I try to answer them all! GitHub: github.com/ComponentFactory/CSharpAnswers
Dynamic LINQ queries in C#
Просмотров 4,9 тыс.2 года назад
Sometimes you need to create a LINQ query that is dynamic and can be adapted to requirements such as responding to users clicking on different columns for sorting. C# Answers provides answers to common questions about the C# language and the related .NET system. Do you have a programming question about C# or .NET that you would like answered? Add it as a comment below and I try to answer them a...
Difference between IEnumerable and IQueryable in C#
Просмотров 2,9 тыс.2 года назад
Many developers use LINQ without knowing the real difference between these two important interfaces. C# Answers provides answers to common questions about the C# language and the related .NET system. Do you have a programming question about C# or .NET that you would like answered? Add it as a comment below and I try to answer them all! GitHub: github.com/ComponentFactory/CSharpAnswers
Join using multiple properties in LINQ in C#
Просмотров 4922 года назад
Join using multiple properties in LINQ in C#
Left Outer Join in LINQ in C#
Просмотров 3,5 тыс.2 года назад
Left Outer Join in LINQ in C#
Difference between Select and SelectMany in LINQ in C#
Просмотров 6 тыс.2 года назад
Difference between Select and SelectMany in LINQ in C#
Multi property ordering, OrderBy, using LINQ in C#
Просмотров 7062 года назад
Multi property ordering, OrderBy, using LINQ in C#
Create a multiline string in C#
Просмотров 4562 года назад
Create a multiline string in C#
Raw string literal pattern in C# 11
Просмотров 1172 года назад
Raw string literal pattern in C# 11
Differences between a field and a property in C#
Просмотров 6 тыс.2 года назад
Differences between a field and a property in C#
Sort a generic List by a property of the objects in C#
Просмотров 6 тыс.2 года назад
Sort a generic List by a property of the objects in C#
NullReferenceException and how do I fix it in C#
Просмотров 1,2 тыс.2 года назад
NullReferenceException and how do I fix it in C#
What do two question marks / null coalescing / '??' do in C#?
Просмотров 3842 года назад
What do two question marks / null coalescing / '??' do in C#?
Generate a random number in C#
Просмотров 8812 года назад
Generate a random number in C#
Best way to catch multiple exceptions in C#
Просмотров 3042 года назад
Best way to catch multiple exceptions in C#
Deep clone/copy an object graph in C#
Просмотров 9912 года назад
Deep clone/copy an object graph in C#
Iterate over a Dictionary in C#
Просмотров 5112 года назад
Iterate over a Dictionary in C#
Case insensitive string.Contains in C#
Просмотров 9782 года назад
Case insensitive string.Contains in C#

Комментарии

  • @teamcrossover2483
    @teamcrossover2483 4 дня назад

    what about video games? what should i use?

  • @serwizzart
    @serwizzart 12 дней назад

    you sound like a great teacher - you don't have a C# for beginners course or something? I don't know but you sound like I want to learn from you haha

  • @sharl1633
    @sharl1633 21 день назад

    Launching the blue one will present you with a UI, while launching the pink one will present you with 3rd degree burns coming from your PC.

  • @SuckMyGreasyPrick
    @SuckMyGreasyPrick 22 дня назад

    LIE NUX lol

  • @KankuroGorillaz
    @KankuroGorillaz 28 дней назад

    Thank you for this! I’ve been having trouble wrapping my head around this concept and you easily explained it.

  • @paolozezar
    @paolozezar Месяц назад

    muy buena explicación, te mereces mas suscriptores

  • @paolozezar
    @paolozezar Месяц назад

    Muy buena explicación te mereces mas suscriptores

  • @icollided
    @icollided Месяц назад

    I use all three, Windows, Mac, and Linux. I wanted to write my code once and have it be able to compile and run on all three, while also being able to use CUDA for harnessing the power of the GPU. The main issues are creating the GUI, and system calls. There is no real good way around the system call thing, besides a bunch of #ifdef checks, and that can get so complicated that you might as well re-write your code for each OS. QT Creator works on all three, and the look and feel is pretty close to native looking, but the libraries are HUGE. A full QT install with all the options is 250 GB! It sure would be nice if there was a grand, unified development stack... until I figure something better than QT out, I will just use c# on windows with Visual Studio. QT Creator on Linux, and Xcode on Mac...

  • @noncinque
    @noncinque 2 месяца назад

    Ah yes, vs vs vs code

  • @BlackJar72
    @BlackJar72 3 месяца назад

    Kind of pointless, as in just what the documentation tells you about something fairly simple and straight foward. What would be better to know is if there is any under-the-hood difference between a property and just plain old getters and setters. (Or if they are just "syntactic sugar.")

  • @karimazer-x8x
    @karimazer-x8x 3 месяца назад

    Hi, can I use language c in visual studio because I did not find it

    • @cacopoggers
      @cacopoggers Месяц назад

      if you make a c++ project you can also write in C

  • @HarrodRita-b6p
    @HarrodRita-b6p 3 месяца назад

    Quigley Forks

  • @LesEuell-f2z
    @LesEuell-f2z 3 месяца назад

    Pacocha Summit

  • @RhondaDavis-p5d
    @RhondaDavis-p5d 3 месяца назад

    Daryl Junction

  • @ChelseaBerneri-d7j
    @ChelseaBerneri-d7j 3 месяца назад

    Amanda Avenue

  • @AmandaWaterman-n2q
    @AmandaWaterman-n2q 3 месяца назад

    Rodriguez Falls

  • @AidaSharp-x3i
    @AidaSharp-x3i 3 месяца назад

    Eriberto Squares

  • @ArthurValentina-f1k
    @ArthurValentina-f1k 3 месяца назад

    McLaughlin Mall

  • @ml_serenity
    @ml_serenity 4 месяца назад

    If you use Linux or Windows or Mac OS the only right answer is to use JetBrains Rider.

  • @halladba101
    @halladba101 4 месяца назад

    Thank you so much! So in essence, use VS Code for Web or General use for it's wide-range of supported languages, While use Visual Studio for specific / C# related projects (WinForms and such) But still, you're saying the community version is all what a one needs? Then what the hell is the purpose of the paid Subscription? Is it like for advanced users / certain features?

  • @WheatleyZero-d2j
    @WheatleyZero-d2j 4 месяца назад

    Paucek Walk

  • @HongRauzman-v9x
    @HongRauzman-v9x 4 месяца назад

    Prosacco Court

  • @LambWinni-i7f
    @LambWinni-i7f 4 месяца назад

    Beier Burg

  • @CA_Carilae_KeReRi
    @CA_Carilae_KeReRi 4 месяца назад

    This is what i need! Thank you!

  • @TabithaButler-q9m
    @TabithaButler-q9m 4 месяца назад

    Vandervort Spur

  • @DanielDavis-q8g
    @DanielDavis-q8g 4 месяца назад

    Funk Rapids

  • @CorinnaStiefel-r1v
    @CorinnaStiefel-r1v 4 месяца назад

    Isobel Trafficway

  • @nssnsns-p5h
    @nssnsns-p5h 4 месяца назад

    Reinhold Mountain

  • @ab_obada5012
    @ab_obada5012 4 месяца назад

    Why I can't use Dictionary instead of KeyValuePair to iterate them?. What I know if I want to iterate smth like int array or string array I must use the same type to iterate them even with classes

  • @hayesgeldmacher8592
    @hayesgeldmacher8592 4 месяца назад

    Super helpful, Thank you!

  • @omenplayer8000
    @omenplayer8000 5 месяцев назад

    awesome

  • @memoryclips
    @memoryclips 5 месяцев назад

    👏👏

  • @indieguy7297
    @indieguy7297 5 месяцев назад

    I recognize your voice from Unity!

  • @chebkhaled69
    @chebkhaled69 6 месяцев назад

    excellent video. straight to the point, how tutorials should bee

  • @kskunk
    @kskunk 6 месяцев назад

    💯Best SelectMany explanation!! Thanks for all the many examples and code!!

  • @HenryEmilyIsHapi
    @HenryEmilyIsHapi 6 месяцев назад

    I searched "Vs vs Vs code" and didnt expect to find anything, yet here i am! Great video.

    • @atharvsharma1866
      @atharvsharma1866 6 месяцев назад

      my fellow human, u know nothing about internet if you think you will search something and you wouldn't find anything about it. there is something about EVERYTHING, on the internet.

    • @ana_s
      @ana_s 5 месяцев назад

      ​@@atharvsharma1866I dont know, I don't get anything when I search "ajshejaksiejabakkdosjb ajajjanrls" on Google

    • @my_daarlin
      @my_daarlin 3 месяца назад

      when u put it like this is sounds hilarious XD

    • @HenryEmilyIsHapi
      @HenryEmilyIsHapi 3 месяца назад

      @@atharvsharma1866 The thing is that "vs vs vs code" sounds ridiculous to me and thought that youtube may get confused and only bring up like a vs code tutorial and not a conparison between vs and vscode.

    • @fogone1
      @fogone1 2 месяца назад

      *versus versus versus code*

  • @RuDenisska
    @RuDenisska 7 месяцев назад

    Jetbrains!

  • @kagankarakaptan6274
    @kagankarakaptan6274 7 месяцев назад

    useless ?.. saved my life atm.

  • @Ashkannetss
    @Ashkannetss 7 месяцев назад

    Great

  • @cyberulitka
    @cyberulitka 8 месяцев назад

    i adore how your speech is well-written

  • @benjaminlehmann
    @benjaminlehmann 8 месяцев назад

    That was really helpful. Thanks man

  • @jasdfff770
    @jasdfff770 9 месяцев назад

    Nice video!! Which one do you recommend for C developers? Thanks!

    • @sillyred50
      @sillyred50 7 месяцев назад

      visual studio code

  • @_MaiT
    @_MaiT 9 месяцев назад

    I'm linux user. Is writing code on c# and .NET in linux on VSCode painful thing? Should i download virtual machine to have visual studio on windows there?

  • @darkwhite123
    @darkwhite123 9 месяцев назад

    what if there are two lists? a list with won years and a list with participated years. selectMany is executed consecutive? so there will be "stupid" duplicates? do you know of a way to achieve such without duplicates?

  • @venkatshabarish1784
    @venkatshabarish1784 9 месяцев назад

    I want to integrate my my test cases from test plan in azure devops with the automated test cases from visual studio code/visual studio… so that where I automate them the test result in the test plan ado should change Is it possible?

    • @kevinp4468
      @kevinp4468 7 месяцев назад

      Yes let's talk about it

  • @johanneskunz1737
    @johanneskunz1737 10 месяцев назад

    Shouldn't it be private set { _age = Math.Min(120, Math.Max(0, value)); } ??

  • @latedeveloper7836
    @latedeveloper7836 10 месяцев назад

    very helpful - hoping you'll be making more videos soon

  • @RudyJayson450
    @RudyJayson450 10 месяцев назад

    good video.

  • @ccamp3175
    @ccamp3175 10 месяцев назад

    Correct me if I err, but at 2:54, I believe you say "Creating the same project in Visual CODE is much simpler." Isn't this your intro to Visual BASIC, though? You've begun by showing us VBStudio, and now you want us to see Visual BASIC, right? I'm very confused by this.

  • @salmansaeed9278
    @salmansaeed9278 10 месяцев назад

    Very Useful Thanks a bunch