Visual Studio General .NET Core
Nov 20, 2019

Určení kultury pro interpolaci řetězců v C#

Používání interpolace řetězců v C# může být návykové, ale můžeme narazit na problém při použití kódu komunikujícího s JavaScriptem. Když spustíme kód na počítači s nastavením na angličtinu, dostaneme jiný výstup než na počítači s češtinou. Jak tento problém vyřešit? Čtěte dál, v článku se dozvíte spoustu užitečných tipů a triků!

Unity Development
Jan 15, 2019

A modern singleton in Unity

Discover how to implement the singleton pattern in Unity for creating game components like game manager or localization manager. Learn about the inspiration behind the implementation and check out the code. Don't miss out!

Unity Development
Jan 15, 2019

Vzor singleton v Unity

Pokud vytváříte komponenty v Unity jako je game manager nebo localization manager, návrhový vzor singleton je pro vás užitečný. V tomto blog postu se podělím o implementaci, kterou můžete použít ve svém projektu. Inspirace získaná z různých zdrojů a kód k dispozici v článku.

Visual Studio General .NET Core
Jan 10, 2019

Cool new way to fill array with a value in .NET Core

Introducing the new way to count: Array.Fill in .NET Core 2.0! Say goodbye to endless for-loops and slow performance. With Array.Fill, you get the best of both worlds - speed and simplicity. Peek under the hood and see how it works. Plus, discover how to specify which indices to fill. Check it out!

Visual Studio General .NET Core
Jan 10, 2019

Cool způsob jak naplnit pole hodnotou v .NET Core

Zajímá vás, kolikrát jste psali opakované cykly nebo LINQ? Pokud odpovíte "nekonečněkrát", máme pro vás dobrou zprávu! Nový způsob v .NET Core Vám to usnadní. Array.Fill je stručný a rychlý. A nejlépe na tom je, že je dostupný ve všech verzích .NET Core 2.0 a novějších. Zjistěte, jak funguje a podívejte se i pod kapotu!

General
Jan 7, 2019

A story about why cautious parentheses never hurt

Discover how a seemingly innocent operator precedence mistake led to completely wrong results when implementing read operations for ushort values from a little-endian byte array. Learn why adding parentheses is crucial for code clarity and avoiding errors. Check out the full article to find out how this mistake was fixed and the lesson learned.

General
Jan 7, 2019

Příběh o tom, že závorky navíc nikdy neuškodí

Dnes jsem se pokoušel implementovat čtení **hodnot ushort z little-endian pole bytů**. Co by se mohlo pokazit? Kód dával úplně nesprávné výsledky. Ponaučení z tohoto příběhu je - kdykoliv váháte, **dvě stisknutí kláves se závorkou vás zachrání před matoucí ladící seancí**.

Development General
Oct 16, 2018

Quick tip: Using format strings with string interpolation in C#

Discover the convenient and readable alternative to string.Format in C# 6 with the introduction of string interpolation syntax. But did you know it also supports format string syntax? Say goodbye to falling back and embrace the succinct and analogous approach. Find out more in the full article.

Visual Studio Xamarin XAML
Jul 20, 2017

Kontrola režimu náhledu v Xamarin.Forms

Visual Studio pro Windows a Mac nyní obsahuje Xamarin XAML Previewer, který nám umožňuje zobrazit náhled naše XAML soubory. Jak však ověřit, že aplikace běží v režimu náhledu? Na toto téma pojednává tento článek, který vám přináší elegantní a příjemný způsob, jak toto ověření provést.

WinUI
Jan 20, 2017

Observing system color changes in UWP apps

Discover how to make your app adapt to user preferences in real-time with accent colors and dynamic resource references. Learn how to access the current accent color and handle color changes outside of XAML using the UISettings class. But beware, there might be an unreliable bug in the system! Check out the full article to find out more.

Visual Studio WinUI General
Jan 11, 2017

Použití barev pleti Emoji v aplikacích

Unicode 8.0 přidal pět znaků tónu pleti - tzv. Modifiers, které umožní změnit barvu kůže u některých Emoji emotikon. Jak toho můžeme využít v našich aplikacích? V článku se dozvíte, jak kombinovat modifier znaky s Emoji, jaké existují barvy pleti a jak implementovat změnu barvy pleti v kódu.

Visual Studio WinUI General
Jan 11, 2017

Working with Emoji skin tones in apps

Discover how to use the new Unicode 8.0 feature that allows you to change the skin color of emojis in your apps. This article provides information on modifiers, combining emojis, implementing skin tone modifications, and includes sample code. Find out how to support all skin tones in your app!