dotnetomaniak.pl - Artykuły z tagiem C#

Zawsze przychodzi ten moment gdy trzeba rozwiązać buga na produkcji i jedyne co mamy to logi aplikacji. Okazuje się oczywiście, że nie ma wszystkich informacji w tych logach. Nie ma nawet całkiem podstawowych informacji...

Dziel się z innymi:
Zalogowanie ustawień podczas startu applikacji | Show me the code

Recently, I had quite an interesting discussion about var keyword in C#. Basically, my interlocutor tried to convince me that using var we drastically reduce code readability, so we should only use that together with anonymous types. He also mentioned performance and that some operations cannot be done using implicit typing. Well, if you’ve been reading my blog for some time, you’ve probably spotted that I’m a big fan of vars, and I put them every time it’s possible. B...

Źródło: foreverframe.net
Dziel się z innymi:
To var or not to var? - Forever F[r]ame

Sztuka programowania 2317 dni, 19 godzin, 37 minut temu dpawlukiewicz 270 źrodło rozwiń

W skrócie jak ustawić czas systemowy z poziomu .neta, a przy okazji jak wywołać funkcję z pewnej dllki.

Tagi: C#, Windows
Źródło: piatkosia.k4be.pl
Dziel się z innymi:
Władca czasu

Windows 2325 dni, 20 godzin, 28 minut temu piatkosia 111 źrodło rozwiń

[DebuggerTypeProxy] is very useful attribute when you have a class that inherits from another class and that one inherits from another one, and some of the classes contain collections of items and hundreds of properties that in fact are not important to you… Strictly speaking, when displaying class’ members while debugging makes you feel like quitting the job. [b]We decide how to display object while debugging[/b] Exactly! You can set a proxy that will inform debugger how you want a type to be displayed...

C# attributes you should know #1: [DebuggerTypeProxy] – A Girl Among Geeks

Inne 2324 dni, 20 godzin, 28 minut temu AGirlAmongGeeks 173 źrodło rozwiń

Last Tuesday, I had a talk in Wrocław about async/await in C# (thanks once again, you rock!). At some point, I asked the audience seemingly simple question. Why do we need async keyword at all? When I look at the folks, lots of them looked very confused since the answer seemed very obvious. Well, as you probably expect, it’s a little bit more complicated.    Async makes my method asynchronous… At the very beginning, I should explain why the answer to my ques...

Tagi: async/await, C#
Źródło: foreverframe.net
Dziel się z innymi:
Why do we need async keyword in C#? - Forever F[r]ame

Sztuka programowania 2332 dni, 20 godzin, 6 minut temu dpawlukiewicz 290 źrodło rozwiń

Wpis o tym, jakie mamy modyfikatory dostępu i jak je olać ciepłym moczem;)

Źródło: piatkosia.k4be.pl
Dziel się z innymi:
Modyfikatory dostępu nie takie święte

Sztuka programowania 2337 dni, 18 godzin, 38 minut temu piatkosia 254 źrodło rozwiń

Chciałbym dziś napisać o jednej z metod poszerzania wiedzy. Od zawsze nazywało się to dla mnie The Morning Brew. Jak sam autor pisze: The Morning Brew is a daily .NET software development link blog published by Chris Alcock a software developer from the north west of England. Chris ma w tym doświadczenie, to już #2468 odcinek, pierwszy był 10 lat temu!

Tagi: .Net, blog, C#, wiedza
Dziel się z innymi:
Codzienna prasówka – The Morning Brew | Show me the code

Inne 2338 dni, 19 godzin, 58 minut temu https://krzysztofmorcinek.w... 200 źrodło rozwiń

Chcemy rzucić wyjątkiem, gdy mamy przypadek nieobsłużony poprzez case’y. Na przykład gdy pojawiła się nowa wartość enuma Shape. throw EnumGuard.CreateMissingEnumException(nameof(shape), shape);

Tagi: .Net, C#, Enum, Exception
Dziel się z innymi:
Prostsze rzucanie wyjątków, gdy nie mamy obsłużonego Enuma | Show me the code

Czas na nową serię – czego nauczyłem się danym tygodniu. W tej serii będę się starał napisać klika słów oraz zamieści kilka linków z tego czego nowego nauczyłem się danego tygodnia. Gdy nie będę miał materiałów no cóż albo urlop albo wstyd (wstyd nie nauczyć się czegoś codziennie). Ponieważ inne serie się sprawdzają (z newsami) więc ta też powinna się przyjąć. Na każdym „zaangażowanym” blogu programistycznym jest jakaś seria. Prawdziwa fala przeszła z kursami na meila-a. Zapraszam serdecznie. W tym ...

Dziel się z innymi:
Czego nauczyłem się w 45 tygodniu 2017? | Blog Programisty.NET

Sztuka programowania 2348 dni, 19 godzin, 40 minut temu przemekwa 216 źrodło rozwiń

Najbardziej popularnym Value Object jest Money. W tym przykładzie instancje możemy tworzyć tylko poprzez metode Create() (taka fabryka). Konstruktor jest prywatny. Pewnie dla tego przykładu lepiej mieć po prostu publiczny konstruktor z dwoma parametrami, ale mam wiele przykładów innych bardziej skomplikowanych Value Objects, gdzie podejście z prywatnym konstruktorem i kilkoma fabrykami walidującymi różne przypadki ma sens.

Immutable Value Object przesyłany/serializowany (np po SignalR) | Show me the code

Opublikowane w przez szymadmin W poprzednim odcinku (link) , mogliście przeczytać na temat stworzenia projektu w asp.net core, Depedency Injection oraz innych niuansach. Dzisiaj przejdziemy do części praktycznej -> użycie jej. Czym jest, jak się to je – jest to mikro obraz konkretnego środowiska, z daną wersją i w danym projekcie otwartym na konkretnym porcie. Wspierany jest przez wiele platform i firm, które udostępniają swoje obrazy na dockercloud. Dla przykładu, użyty przez nas asp.net core, serwery...

Źródło: szymonmotyka.pl
Dziel się z innymi:
Od Zera do Dockera: Docker i Chmury - Szymon Motyka

Cloud 2354 dni, 16 godzin, 24 minuty temu aluspl 173 źrodło rozwiń

A few days ago I watch a very interesting talk from NDC given by Jon Skeet, Kathleen Dollard and Rob Conery. Around 41:15 minute Kathleen said something very interesting about protected internal...

Źródło: foreverframe.net
Dziel się z innymi:
private protected in C#? - Forever F[r]ame

Sztuka programowania 2364 dni, 20 godzin, 54 minuty temu dpawlukiewicz 232 źrodło rozwiń

Welcome to the first part about DevOps and automating the deployment for the .NET Core apps with the usage of Docker, Travis CI (I’ll also mention how to use BitBucket Pipelines) and Rancher. The purpose of this tutorial is to show you that setting up the CI & CD for the projects that you’re working on is not as complex as it may seem at the first glance. The slides for the presentation can be found here.

Dziel się z innymi:
.NET Core DevOps with Docker, Travis CI and Rancher – part 1 | Piotr Gankiewicz

Narzędzia 2365 dni, 21 godzin, 33 minuty temu spetz 154 źrodło rozwiń

When I browse StackOverflow questions tagged with selenium label, a lot of them are related to the problem of clicking on page elements. It seems to be one of the most trivial tasks, but can cause a lot of problems. Very often invoking Click() action on webelement ends with exceptions (there is a wide range of them). The main reason is that element on which we try to click is not in “Interactable” state. There is a lot of different factors that can cause that situation:Element has zero dimension (width ...

Dziel się z innymi:
Why clicking with Selenium is so hard

Web 2380 dni, 20 godzin, 48 minut temu cezarypiatek 105 źrodło rozwiń

Wspólna nauka wzorców projektowych, na pierwszą linię idzie Obserwator. Zachęcam do komentowania i dzielenia się spostrzeżeniami.

Dziel się z innymi:
Obserwator – design patterns #1 – Dev on board

Sztuka programowania 2384 dni, 20 godzin, 42 minuty temu devonboard 291 źrodło rozwiń

C# Attributes are very popular for ‘decorating’ assembly with some additional data, usually influencing on the application’s behavior or the way data are managed. You probably already used at least some of them – Obsolete, Serializable, Required, Display, MaxLength, RegularExpression, WebMethod are only a few of hundreds available in .Net world. What is more, you can write your own custom attribute and use it like a build-in one. I will write more about this in the next post. Right now, let’s focus o...

Dziel się z innymi:
C# Attributes – introduction – A Girl Among Geeks

Sztuka programowania 2388 dni, 20 godzin, 59 minut temu AGirlAmongGeeks 166 źrodło rozwiń

Written by Dawid Sibińskion As you may know, in my MoneyBack Xamarin.Android application I’ve used SQLite as the local db management system. Recently I’ve added an ASP.NET Core web solution to my GitHub repository in order to create back-end API for my mobile app. I wanted to have database hosted on a remote server and Android application to synchronize its data with it. Then I started wondering… and decided to make a deeper research first. As I wrote in my post summing up DajSiePoznac2017 comp...

Źródło: www.dsibinski.pl
Dziel się z innymi:
Xamarin.Android – ASP.NET web api synchronization – research – Dawid’s blog

Architektura 2393 dni, 21 godzin, 24 minuty temu dsibinski 36 źrodło rozwiń

Recently we added in-memory caching to Azure App. You can try it out now on iOS and Android! It turns out Mono doesn’t have System.Runtime.Caching namespace, which makes it easy to implement caching for .NET apps. We had to find another way...

Tagi: C#, Xamarin
Źródło: jj09.net
Dziel się z innymi:
[EN] In-memory caching in Xamarin apps

Mobile development 2393 dni, 21 godzin, 24 minuty temu jj09 47 źrodło rozwiń

Cześć. Dużo się ostatnio naoglądałem i naczytałem o DDD i architekturze port-adapter i tak zacząłem rozmyślać jak to osiągnąć, choćby w kontekście tooli, które piszę do swojego silnika. Z tego co zauważyłem, to w projektach z którymi przyszło mi pracować, większość klas jest publiczna. Jest to zrozumiałe, chcemy mieć testy lub nie mamy testów, ale wszyscy piszą public, więc co to za problem. No niestety problem jest, wynika on z tego, że udostę...

Źródło: harunx9.github.io
Dziel się z innymi:
Programming warfare – .NET klasy internal a testy jednostkowe

Sztuka programowania 2398 dni, 21 godzin, 32 minuty temu SzymonW 180 źrodło rozwiń

Stale rosnąca baza pytań rekrutacyjnych dla programistów.

Tagi: C#, HTML 5, SQL
Źródło: skillstest.pl
Dziel się z innymi:
Pytania rekrutacyjne dla programistów

Inne 2400 dni, 20 godzin, 30 minut temu marcin90 509 źrodło rozwiń

1 2... 10 11 12 13 14 15... 72 73

Najaktywniejsi w tym miesiącu