<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Languages topics</title>
    <link>https://techcommunity.microsoft.com/t5/languages/bd-p/languages</link>
    <description>Languages topics</description>
    <pubDate>Thu, 30 Apr 2026 01:23:22 GMT</pubDate>
    <dc:creator>languages</dc:creator>
    <dc:date>2026-04-30T01:23:22Z</dc:date>
    <item>
      <title>Grant/Revoke permissions to Windows local certificates (certlm) in non-admin mode</title>
      <link>https://techcommunity.microsoft.com/t5/languages/grant-revoke-permissions-to-windows-local-certificates-certlm-in/m-p/4492388#M304</link>
      <description>&lt;P&gt;I am working on granting/revoking permissions to windows local certificates (certlm) using Visual C++ 2022. The challenge is that this needs to be performed in non-admin privileges. We would need to remove "Everyone" permissions and grant read permissions for our NT Service account to windows local certificates (certlm). Is it possible to perform under non-admin privilege? It would be great help if can get solution for this.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 04:39:30 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/grant-revoke-permissions-to-windows-local-certificates-certlm-in/m-p/4492388#M304</guid>
      <dc:creator>siva72</dc:creator>
      <dc:date>2026-02-05T04:39:30Z</dc:date>
    </item>
    <item>
      <title>PowerShell hosting in C#</title>
      <link>https://techcommunity.microsoft.com/t5/languages/powershell-hosting-in-c/m-p/4461118#M303</link>
      <description>&lt;P&gt;Don't know if this is the correct place to post my question...&lt;/P&gt;&lt;P&gt;I want to use the PowerShell 7 cmdlet Get-ClusterResource in C# under Windows 11, like this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using System.Collections.ObjectModel;
using System.Management.Automation;

namespace PSHosting;

class Program { static void Main()
{
    using (var powerShell = PowerShell.Create())
    {
        powerShell.AddScript("Get-ClusterResource -Cluster 'WSFC1'");
        Collection&amp;lt;PSObject&amp;gt; result = powerShell.Invoke();
    }
}&lt;/LI-CODE&gt;&lt;P&gt;I have the RSAT&amp;nbsp;&lt;EM&gt;FailoverCluster&lt;/EM&gt; Windows package installed.&lt;/P&gt;&lt;P&gt;When calling &lt;EM&gt;Get-ClusterResource&lt;/EM&gt; in a PowerShell session, PowerShell uses the implicit remoting technique to create and load a proxy module for the original FailoverCluster module, and then execute the command on the remote computer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At some point during my attemps to get a working&amp;nbsp;&lt;EM&gt;Get-ClusterResource&lt;/EM&gt;&amp;nbsp;in my C# code, I included the following in the above code (before the&amp;nbsp;using&amp;nbsp;statement):&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;Set-ExecutionPolicy&lt;/EM&gt;&amp;nbsp;command that lets PowerShell execute arbitrary scripts (most probably required because module loading (see below) and/or implicit remoting would run .ps1 and/or .psm scripts contained in the FailoverCluster module folder)&lt;/LI&gt;&lt;LI&gt;An&amp;nbsp;&lt;EM&gt;Import-Module&lt;/EM&gt;&amp;nbsp;command that loads the FailoverCluster module into the current session&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Interestingly, the above code still works in my environment after stripping the commands 1. and 2. above from the code, deleting the proxy module C:\Users\&amp;lt;UserName&amp;gt;\AppData\Local\Temp\remoteIpMoProxy_FailoverClusters_2.0.0.0_localhost_&amp;lt;ID&amp;gt;, and rebooting the computer.&lt;/P&gt;&lt;P&gt;My ultimate goal is to publish code like the above together with all required modules and other stuff so it can run successfully on a computer with stock Windows 11 installed only (single exception: .NET runtime matching my C# version is installed, so I don't need to distribute that too).&lt;/P&gt;&lt;P&gt;From what I think I know at the moment, this means that I need to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Include the FailoverCluster module folder in my publication, and&lt;/LI&gt;&lt;LI&gt;Add the commands 1. and 2. above in my code (hopefully, referencing the FailoverCluster module works with a relative path)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Am I correct here, or do I miss something out?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 10:02:28 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/powershell-hosting-in-c/m-p/4461118#M303</guid>
      <dc:creator>ahinterl</dc:creator>
      <dc:date>2025-10-13T10:02:28Z</dc:date>
    </item>
    <item>
      <title>_EnumDesktopWindows API problem</title>
      <link>https://techcommunity.microsoft.com/t5/languages/enumdesktopwindows-api-problem/m-p/4411987#M301</link>
      <description>&lt;P&gt;_EnumDesktopWindows API which uses User32.dll stopped working when the patch having OS build number 26100.3775 was updated on Windows 11. The version which was thus installed for Windows 11 is 24H2. It happen also on windows 2019 server having 24H2 as version number.&lt;/P&gt;&lt;P&gt;When it tries to get a windows handle of a FORM, it freezes and doesn't allow the user to do anything. What seems to be the problem &amp;amp; how this can be rectified? Anyone's help will be deeply appreciated. Thanks...&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 15:25:14 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/enumdesktopwindows-api-problem/m-p/4411987#M301</guid>
      <dc:creator>TANMOY1975</dc:creator>
      <dc:date>2025-05-08T15:25:14Z</dc:date>
    </item>
    <item>
      <title>Specify locale/language for exception messages to user during runtime.</title>
      <link>https://techcommunity.microsoft.com/t5/languages/specify-locale-language-for-exception-messages-to-user-during/m-p/4384798#M300</link>
      <description>&lt;P&gt;I am using VB 2022 with .NET 8 &amp;amp; 9. I develop applications that allow the user to specify which language they want the GUI elements to be displayed in while the application is running - regardless of what language the users' MS Windows profile is set to.&lt;BR /&gt;&lt;BR /&gt;The reason I do this is because some companies (mine included) require all systems to be set to the U.S. English (EN-US) regional/locale settings. This is very easy for me to achieve, even for expected user errors which I can head off. However, unexpected system error messages are always displayed in the English language because the system is set to the English language. Is there any known way to force unexpected error/exception messages to be displayed in a language other than the system's current language?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I knew every single possible error that could be thrown up, as well as its corresponding error code/number, I could create translations myself. But, unfortunately, I have no way of listing every possible system error that could be thrown up during runtime. It would be nice if Microsoft had a COMPLETE list of these somewhere. But every list I've seen is fragmented and incomplete, and sometimes doesn't include a corresponding error code with the message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Try 'Attempt the following block of code.
     '///////////////////////////////////////////////
     ' E X E C U T E   S O M E   C O D E   H E R E !
     '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Catch e As System.Exception 'Trap any unexpected system error.
     MessageBox.Show(e.HResult.ToString &amp;amp; NewLine &amp;amp; e.Message, MyCaption, MessageBoxButtons.OK, MessageBoxIcon.Error) 'Display the error message to the user.
End Try&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though the user's system is set to the English language, I want to be able to display the message passed in the 'e.Message' member from the codes sample in whatever language the user has specified their GUI to display in during that application's runtime.&lt;BR /&gt;&lt;BR /&gt;Any ideas how to achieve this?&lt;BR /&gt;&lt;BR /&gt;BTW...&amp;nbsp; the ability to do this would be an AWESOME feature for Microsoft to add to future .NET releases.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 21:34:22 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/specify-locale-language-for-exception-messages-to-user-during/m-p/4384798#M300</guid>
      <dc:creator>GypsyPrince</dc:creator>
      <dc:date>2025-02-23T21:34:22Z</dc:date>
    </item>
    <item>
      <title>C# JSON deserialization returns null</title>
      <link>https://techcommunity.microsoft.com/t5/languages/c-json-deserialization-returns-null/m-p/4362854#M299</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;so first of, I just started working with JSON deserialization today and just know the bare basics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I am currently developing a bot wich should get data from an API of a minecraft server.&lt;/P&gt;&lt;P&gt;So far everything works perfectly except one thing: Since a minecraft uuid can start with a number (like for example "121e2d73913041ffaa49af39d124673f") visual studio automatically creates the uuid part with "_" ("public _121E2d73913041ffaa49af39d124673f _121e2d73913041ffaa49af39d124673f { get; set; }").&lt;/P&gt;&lt;P&gt;Now, when I try to request data from a uuid wich starts with a &lt;U&gt;letter&lt;/U&gt; everything works fine. However when I request it from a uuid with a&amp;nbsp;&lt;U&gt;number&lt;/U&gt;, it will return null.&lt;/P&gt;&lt;P&gt;My guess is, that since the JSON itself does not have "_", it wont get deserialized into the in-code version with "_".&lt;/P&gt;&lt;P&gt;-&amp;gt; btw, I am using System.Text.Json, not Newtonsoft.Json but would have no problems changing... I hope.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question is, if there is a way to get this to work or maby work arround it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance :D&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2025 13:07:35 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/c-json-deserialization-returns-null/m-p/4362854#M299</guid>
      <dc:creator>DefinitivVair0</dc:creator>
      <dc:date>2025-01-05T13:07:35Z</dc:date>
    </item>
    <item>
      <title>Extract images from excel stored as Place in cell</title>
      <link>https://techcommunity.microsoft.com/t5/languages/extract-images-from-excel-stored-as-place-in-cell/m-p/4355506#M295</link>
      <description>&lt;P&gt;Hello experts,&lt;BR /&gt;I am trying to extract images from an Excel file using a C# program. My code successfully retrieves images that are placed over cells in the worksheet. Now, I need to adapt this functionality so that it can retrieve images which are stored as&lt;STRONG&gt; Place in cell&lt;/STRONG&gt; in the excel .I want use this Azure Function for Business Central integration&amp;nbsp;&lt;BR /&gt;here is the code&amp;nbsp;&lt;/P&gt;&lt;P&gt;using Openize.Cells;&lt;BR /&gt;using System.IO;&lt;BR /&gt;using DocumentFormat.OpenXml;&lt;/P&gt;&lt;P&gt;class Program&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; static void Main(string[] args)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string filePath = "C:\\Users\\Raj.Kamal\\Downloads\\test.xlsx"; &amp;nbsp;// The path to your workbook&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string outputDirectory = "C:\\Users\\Raj.Kamal\\Downloads";&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Load the workbook from the specified file path&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Workbook wb = new Workbook(filePath);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Select the first worksheet from the workbook&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var worksheet = wb.Worksheets[0];&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Extract images from the worksheet&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var images = worksheet.ExtractImages();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Check if the output directory exists; if not, create it&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!Directory.Exists(outputDirectory))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Directory.CreateDirectory(outputDirectory);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Loop through each extracted image&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (var image in images)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Construct a unique file path for the image using a GUID&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var outputFilePath = Path.Combine(outputDirectory, $"Image_{Guid.NewGuid()}.{image.Extension}");&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Save the image data to the constructed file path&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; using (var fileStream = File.Create(outputFilePath))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; image.Data.CopyTo(fileStream);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Any code snippets, documentation links, or best practices would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Excel file:&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 11:00:41 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/extract-images-from-excel-stored-as-place-in-cell/m-p/4355506#M295</guid>
      <dc:creator>RajKamal</dc:creator>
      <dc:date>2024-12-09T11:00:41Z</dc:date>
    </item>
    <item>
      <title>Enhancing Console.ReadLine to Accept a Message Parameter</title>
      <link>https://techcommunity.microsoft.com/t5/languages/enhancing-console-readline-to-accept-a-message-parameter/m-p/4350856#M294</link>
      <description>&lt;P&gt;n Python, the input function allows you to display a message and wait for user input in a single line of code. However, in C#, achieving the same functionality requires two lines: one for Console.WriteLine to display the message and another for Console.ReadLine to capture the input. Is it possible to have a ReadLine function in C# that takes a message as a parameter and waits for user input?&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2024 08:14:41 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/enhancing-console-readline-to-accept-a-message-parameter/m-p/4350856#M294</guid>
      <dc:creator>PaulinusWong</dc:creator>
      <dc:date>2024-12-01T08:14:41Z</dc:date>
    </item>
    <item>
      <title>Pregunta PdfViewer</title>
      <link>https://techcommunity.microsoft.com/t5/languages/pregunta-pdfviewer/m-p/4304546#M288</link>
      <description>&lt;P&gt;Hola a todos&lt;/P&gt;&lt;P&gt;Estoy trabajando con PdfViewer de Patagames para visualizar PDFs en un formulario WindowsForm. Tengo dos botones, uno para ajustar al ancho de página y otro para mostrar toda la página, pero no consigo implementar el código. ¿Podrían ayudarme?&lt;/P&gt;&lt;P&gt;Gracias de antemano.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 15:42:14 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/pregunta-pdfviewer/m-p/4304546#M288</guid>
      <dc:creator>JDamianOliva</dc:creator>
      <dc:date>2024-11-19T15:42:14Z</dc:date>
    </item>
    <item>
      <title>Why is System.Text.Rune named like this?</title>
      <link>https://techcommunity.microsoft.com/t5/languages/why-is-system-text-rune-named-like-this/m-p/4259950#M282</link>
      <description>&lt;P&gt;.NET uses UTF-16 for string encoding. This means:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;char type, which is atomic unit of string, is 16-bit size data type.&lt;/LI&gt;&lt;LI&gt;that surrogate pairs are used for&amp;nbsp;&lt;EM&gt;Supplementary&lt;/EM&gt;&lt;EM&gt; code points&lt;/EM&gt;,&amp;nbsp;&lt;EM&gt;U+10000..U+10FFFF&lt;/EM&gt;, while for&amp;nbsp;&lt;EM&gt;Basic Multilingual Plane,&amp;nbsp;U+0000..U+FFFF&lt;/EM&gt;&amp;nbsp;one char is sufficient to express any Unicode scalar value.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.NET Rune comes in with ability to bypass surrogate pair problems, e.g. their unintended split. Thus by one variable all scalar values can be expressed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var a = new Rune('a');
var grinnigFace = new Rune ( '\uD83D', '\uDE00' );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There exist many terms related to string and char types: symbol, character, pictogram, emoji, grapheme, script, letter, mark, punctuation, accent, diacritics, emoticon, …&lt;BR /&gt;&lt;BR /&gt;.NET chose to use &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.globalization.textelementenumerator?view=net-8.0#remarks" target="_self"&gt;textual element&lt;/A&gt; as synonym for what is grapheme +/ cluster in Unicode.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.unicode.org/reports/tr51/" target="_blank" rel="noopener"&gt;Unicode® Technical Standard #51&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Note that all emoji sequences are single grapheme clusters:&lt;/BLOCKQUOTE&gt;&lt;P&gt;It is also not 100 % correct to use "grapheme".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Grapheme" target="_blank" rel="noopener"&gt;Grapheme&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;In linguistics, a grapheme is the smallest functional unit of a writing system.&lt;/BLOCKQUOTE&gt;&lt;P&gt;While let say&amp;nbsp;this&amp;nbsp;🧑🏿‍:christmas_tree:&lt;/img&gt; emoji is composed as sequence of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1F9D1, 🧑, \Ud83e\Uddd1&lt;/LI&gt;&lt;LI&gt;1F3FF, 🏿, \Ud83c\Udfff&lt;/LI&gt;&lt;LI&gt;200D, ‍, \U200d&lt;/LI&gt;&lt;LI&gt;1F384, :christmas_tree:&lt;/img&gt;, \Ud83c\Udf84&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;hardly can be any unit considered functional unit of writing system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Document&amp;nbsp;&lt;A href="https://www.unicode.org/standard/principles.html" target="_self"&gt;&lt;EM&gt;The Unicode® Standard: A Technical Introduction&lt;/EM&gt;&lt;/A&gt;&amp;nbsp;is more specific.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;For example, in historic Spanish language sorting, "ll"; counts as a single text element. However, when Spanish words are typed, "ll" is two separate text elements: "l" and "l".&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;Text elements are encoded as sequences of one or more characters. Certain of these sequences are called combining character sequences, made up of a base letter and one or more combining marks, which are rendered around the base letter (above it, below it, etc.). For example, a sequence of "a" followed by a combining circumflex "^" would be rendered as "â".&lt;/BLOCKQUOTE&gt;&lt;P&gt;There can be seen some intersection between Unicode and .NET on&amp;nbsp;&lt;EM&gt;text/textual element&lt;/EM&gt;. Nonetheless, rather opaque terminology reign is apparent.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;The Rune&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="“https://www.vocabulary.com/dictionary/rune”" target="_blank" rel="noopener"&gt;https://www.vocabulary.com/dictionary/rune&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;A rune is a letter used in early Germanic writing. A linguist might be interested in runes because they're evidence of ancient languages, while a mystic might use runes, believed by some to have magical properties, in fortune-telling.&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="“https://www.thefreedictionary.com/rune”" target="_blank" rel="noopener"&gt;https://www.thefreedictionary.com/rune&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;1a) Any of the characters in several alphabets used by ancient Germanic peoples from the 3rd to the 13th century.&lt;/LI&gt;&lt;LI&gt;1b) A similar character in another alphabet, sometimes believed to have magic powers.&lt;/LI&gt;&lt;LI&gt;2) A poem or incantation of mysterious significance, especially a magic charm.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After deeper look,&amp;nbsp;&lt;EM&gt;"rune"&amp;nbsp;&lt;/EM&gt;does not resemble any of terminology used by Unicode and seems to be tightly coupled with Germanic tribes' writing system.&lt;BR /&gt;&lt;BR /&gt;As far as I can see, Rune is nothing more then &lt;EM&gt;Unicode Scalar Value&lt;/EM&gt;. It is not important whether UCP is expressed by 1:1 numeric relation, surrogate pairs or by series of doggies and cats.&lt;BR /&gt;&lt;BR /&gt;It could be said that .NET is about to contribute to terminology&amp;nbsp;goulash:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Why &lt;EM&gt;Rune&lt;/EM&gt; is not &lt;EM&gt;UnicodeScalarValue&lt;/EM&gt;&amp;nbsp;or something more technical accurate?&lt;/LI&gt;&lt;LI&gt;I failed on finding any reference on why this name was chosen.&lt;/LI&gt;&lt;LI&gt;Is there some specific reason?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Or &lt;EM&gt;Rune&lt;/EM&gt; is just fine as grapheme, glyph, symbol and others would be?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 02 Oct 2024 12:02:48 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/why-is-system-text-rune-named-like-this/m-p/4259950#M282</guid>
      <dc:creator>PerceptiveFilament</dc:creator>
      <dc:date>2024-10-02T12:02:48Z</dc:date>
    </item>
    <item>
      <title>Possible to change method called inside foreach?</title>
      <link>https://techcommunity.microsoft.com/t5/languages/possible-to-change-method-called-inside-foreach/m-p/4253711#M281</link>
      <description>&lt;P&gt;I have a created a function as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="applescript"&gt;public static ICustomers[]? SanitiseCustomers(this string[]? custVals, float boxed = 0.5f)
    {
        List&amp;lt;ICustomers&amp;gt; customers = [];

        foreach (var c in custVals)
        {
            customers.Add(c.Sanitize(boxed));
        }

        return [.. customers];
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to replace the &lt;STRONG&gt;Sanitize&lt;/STRONG&gt; function within the foreach loop to a different method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont want to copy and paste the function and create a new one and changing &lt;STRONG&gt;Sanitize&lt;/STRONG&gt; to &lt;STRONG&gt;FriendlyBox&lt;/STRONG&gt; but trying to see if there is a way to switch the method name depending on the way this function is called?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 12:12:06 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/possible-to-change-method-called-inside-foreach/m-p/4253711#M281</guid>
      <dc:creator>Pattison159</dc:creator>
      <dc:date>2024-09-24T12:12:06Z</dc:date>
    </item>
    <item>
      <title>C#</title>
      <link>https://techcommunity.microsoft.com/t5/languages/c/m-p/4243426#M279</link>
      <description>&lt;P&gt;Can any one suggest me how should i improve c# advanced topics and sql advanced topics?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 13:25:27 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/c/m-p/4243426#M279</guid>
      <dc:creator>jaffarm183</dc:creator>
      <dc:date>2024-09-12T13:25:27Z</dc:date>
    </item>
    <item>
      <title>Simple Guide On Effective Use Of Parallel Programming For C# In A Managed Code Environment:</title>
      <link>https://techcommunity.microsoft.com/t5/languages/simple-guide-on-effective-use-of-parallel-programming-for-c-in-a/m-p/4225786#M274</link>
      <description>&lt;P&gt;Parallel programming in C# uses a variation of Managed Threading, that relies on PLINQ, Expression Trees, The Barrier Class, Thread Class, BackgroundWorker Class, SpinWait Struct, SpinLock Struct, and Thread-Tracking Mode for SpinLock. The reason is that it's faster to use the environment to determine how many cores / threads are available, as to not starve the device of resources, which at that point, you have to use the BackgroundWorker Class to manage each task you've created. Often in this scenario, you can end up with a deadlock condition, because you have more than one task trying to access a shared resource. It's much easier and faster to split up each task, ONLY using byte arrays, assigning each task individual byte arrays to sort / parse, encrypted or not, with the Stream class, or a sub variation of that Class, and then when each task finishes, they all finish at different times, but the shared resource is divided up into portions, so that they will only be able to fill one area of that array. The reason why Barrier is used in this situation, is it forces each one to wait until all the tasks are finished, or until they all ARRIVE at the same place, which solves one timing issue, yet it might create another where there's a bit of a timing mismatch if your estimates are wrong, you overshoot or undershoot I mean. At the very end, you can use a separate process to just COPY from each individual array, without a deadlock scenario occurring. The only issue, is you have to estimate how many threads are available ahead of time, and you can't use every single thread, yet you're going to have to divide a single resource between all those threads. Beforehand, you have to verify if it's a waste of time to use more than one thread. The reason why I say this, is that a lot of people use reference types, not knowing they are immutable, and they take a huge / massive performance hit because of this. Often you have to convert strings into byte arrays, or use a pre-initialized character array at the start of the program, which contains the Unicode values that you want to recast individually as strings, and then use a byte array as an INDEX or a placeholder, of a Unicode character array. If you’re not encrypting the byte arrays, or using them for text parsing, which byte arrays tend to be best in high throughput scenarios, than integer arrays will suffice. The index can be scrambled based on how you want to represent that one string, though it's smarter to only cast a new reference type when you want to display text on the screen. If you spend too much time manually parsing using built-in libraries, it's REALLY SLOW. A byte array is better to use than an integer array in this sort of situation. You might have to create separate indexes with a byte array representing a set of binary flags, to determine whether each one is a letter, number, symbol, etc, or how you want to classify each one based on the code chart that you're using. You would be better off in that situation to just use right shift / left shift / XOR, etc, to set the flags. Then you have something which is also very fast, and almost equivalent to a Barrel Shifter, given C# does not allow you to use pointers, as it's managed code / a managed environment. All the Boolean Logical Operators with Compound Assignment rely on pre-initialized Cast Expressions of Integer Literals, Bitwise and Shift Operators, combined with Lambda Expressions, and Operator Overloading. The purpose of the Shift Operators is to mask / pad the bits of one byte value with zeroes, so that your Cast Expression Of An Integer Literal, which serves at the mask, always gives you a fixed / deterministic result, when used in conjunction with Boolean Logical Operators, especially if the value is smaller than 8-bits / a single byte, or you're dealing with a larger array has to represent a flag "register" with a size of ( 2 ^ 8 ) 256 bits, which is basically a Double-Word:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;"Microsoft Learn - Boolean logical operators - AND, OR, NOT, XOR - Compound assignment" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/boolean-logical-operators#compound-assignment"
"Microsoft Learn - Bitwise and shift operators (C# reference)" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/bitwise-and-shift-operators"
"Microsoft Learn - Operator overloading - predefined unary, arithmetic, equality and comparison operators" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/operator-overloading"
"Microsoft Learn - Lambda expressions and anonymous functions" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-expressions"
"Microsoft Learn - Integral numeric types (C# reference) - Integer literals" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types#integer-literals"
"Microsoft Learn - Type-testing operators and cast expressions - is, as, typeof and casts - Cast expression" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/type-testing-and-cast#cast-expression"

"Microsoft Learn - Deserialization risks in use of BinaryFormatter and related types" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-security-guide"
"Microsoft Learn - BinaryReader Class" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.io.binaryreader?view=netframework-4.0"
"Microsoft Learn - Stream Class" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.io.stream?view=netframework-4.0"
"Microsoft Learn - StreamWriter Class" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.io.streamwriter?view=netframework-4.0"
"Microsoft Learn - StreamReader Class" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.io.streamreader?view=netframework-4.0"
"Microsoft Learn - File and Stream I/O" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/io/"
"Microsoft Learn - Pipe Functions" -&amp;gt; "https://learn.microsoft.com/en-us/windows/win32/ipc/pipe-functions"
"Microsoft Learn - System.IO.Pipes Namespace" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.io.pipes?view=netframework-4.0"
"Microsoft Learn - Custom Partitioners for PLINQ and TPL" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/custom-partitioners-for-plinq-and-tpl"
"Microsoft Learn - Expression Trees" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/"
"Microsoft Learn - Build expression trees" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/expression-trees-building"
"Microsoft Learn - Translate expression trees" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/expression-trees-translating"
"Microsoft Learn - Execute expression trees" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/expression-trees-execution"
"Microsoft Learn - System.Windows.Threading Namespace" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.windows.threading?view=netframework-4.0"
"Microsoft Learn - System.Threading Namespace" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.threading?view=netframework-4.0"
"Microsoft Learn - System.Threading.Channels Namespace" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.threading.channels?view=netcore-3.0"
"Microsoft Learn - System.Threading.Tasks Namespace" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks?view=netframework-4.0"
"Microsoft Learn - Timer Class (System.Timers)" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.timers?view=netframework-4.0"
"Microsoft Learn - Timer Class (System.Threading)" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.threading.timer?view=netframework-4.0"
"Microsoft Learn - DispatcherTimer Class (System.Windows.Threading)" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.windows.threading.dispatchertimer?view=netframework-4.0"
"Microsoft Learn - Dispatcher Class (System.Windows.Threading)" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.windows.threading.dispatcher?view=netframework-4.0"
"Microsoft Learn - Threads and threading" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/threading/threads-and-threading"
"Microsoft Learn - Using threads and threading" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/threading/using-threads-and-threading"
"Microsoft Learn - Introduction to PLINQ" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/introduction-to-plinq"
"Microsoft Learn - Task Parallel Library (TPL)" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/task-parallel-library-tpl"
"Microsoft Learn - Lambda Expressions in PLINQ and TPL" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/lambda-expressions-in-plinq-and-tpl"
"Microsoft Learn - Multithreading in Windows Forms Controls" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/multithreading-in-windows-forms-controls"
"Microsoft Learn - Managed threading best practices" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/threading/managed-threading-best-practices"
"Microsoft Learn - Parallel programming in .NET: A guide to the documentation" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/"
"Microsoft Learn - Thread Class" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.threading.thread"
"Microsoft Learn - BackgroundWorker Class" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.backgroundworker"
"Microsoft Learn - Synchronizing data for multithreading" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/threading/synchronizing-data-for-multithreading"
"Microsoft Learn - Overview of synchronization primitives" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/threading/overview-of-synchronization-primitives"
"Microsoft Learn - Environment.ProcessorCount Property" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.environment.processorcount"
"Microsoft Learn - Managed threading best practices - Number of Processors" -&amp;gt; "https://learn.microsoft.com/en-us/previous-versions/dotnet/netframework-1.1/1c9txz50(v=vs.71)#number-of-processors"
"Microsoft Learn - lock statement - ensure exclusive access to a shared resource" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/lock"
"Microsoft Learn - Reliability Best Practices" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/framework/performance/reliability-best-practices"
"Microsoft Learn - BackgroundWorker Component Overview" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/backgroundworker-component-overview"
"Microsoft Learn - How to: Run an Operation in the Background" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/how-to-run-an-operation-in-the-background"
"Microsoft Learn - Thread-safe collections" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/collections/thread-safe/"
"Microsoft Learn - Threading objects and features" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/threading/threading-objects-and-features"
"Microsoft Learn - Barrier" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/threading/barrier"
"Microsoft Learn - Barrier Class" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.threading.barrier?view=netframework-4.0"
"Microsoft Learn - SpinWait" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/threading/spinwait"
"Microsoft Learn - SpinWait Struct" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.threading.spinwait?view=netframework-4.0"
"Microsoft Learn - SpinLock" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/threading/spinlock"
"Microsoft Learn - SpinLock Struct" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.threading.spinlock?view=netframework-4.0"
"Microsoft Learn - How to: use SpinLock for low-level synchronization" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/threading/how-to-use-spinlock-for-low-level-synchronization"
"Microsoft Learn - How to: Enable Thread-Tracking Mode in SpinLock" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/threading/how-to-enable-thread-tracking-mode-in-spinlock"
"Microsoft Learn - Chaining tasks using continuation tasks" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/chaining-tasks-by-using-continuation-tasks"
"Microsoft Learn - Interlocked Class" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.threading.interlocked?view=netframework-4.0"
"Microsoft Learn - TaskFactory Class" -&amp;gt; "https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.taskfactory?view=netframework-4.0"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Aug 2024 06:53:01 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/simple-guide-on-effective-use-of-parallel-programming-for-c-in-a/m-p/4225786#M274</guid>
      <dc:creator>Mousefluff</dc:creator>
      <dc:date>2024-08-22T06:53:01Z</dc:date>
    </item>
    <item>
      <title>Download File from server getting some issues in Asp.net</title>
      <link>https://techcommunity.microsoft.com/t5/languages/download-file-from-server-getting-some-issues-in-asp-net/m-p/4213906#M267</link>
      <description>&lt;P&gt;i have developed some code for downloading file from server first we have to fetch data from database and show in list and when i am clicking on download link i have to get certificate download from server .&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 08:54:48 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/download-file-from-server-getting-some-issues-in-asp-net/m-p/4213906#M267</guid>
      <dc:creator>kk78275918</dc:creator>
      <dc:date>2024-08-08T08:54:48Z</dc:date>
    </item>
    <item>
      <title>do-while in parallel</title>
      <link>https://techcommunity.microsoft.com/t5/languages/do-while-in-parallel/m-p/4205979#M266</link>
      <description>&lt;P&gt;Good morning:&lt;BR /&gt;I have a code in C# Framework 4.8 that has a rather heavy do-while. I would like to know if there is a way to run it in parallel like for or foreach, which have their parallel versions.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 08:03:44 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/do-while-in-parallel/m-p/4205979#M266</guid>
      <dc:creator>Rober2024</dc:creator>
      <dc:date>2024-07-31T08:03:44Z</dc:date>
    </item>
    <item>
      <title>cannot plot vertical aligned column range in chart.net</title>
      <link>https://techcommunity.microsoft.com/t5/languages/cannot-plot-vertical-aligned-column-range-in-chart-net/m-p/4192029#M264</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I need to plot 10 column range vertical aligned.&lt;BR /&gt;With this code I have compensate disalignment BUT after 4 plot it become again disaligned:&lt;BR /&gt;&lt;BR /&gt;Me.Invoke(Sub()&lt;BR /&gt;Chart.Series("FOOT").Points.AddXY(Indice_Corrente, Dato_Base_FOOT, Dato_Plot_FOOT)&lt;BR /&gt;Chart.Series("SX_UP").Points.AddXY(Indice_Corrente - 0.65, Dato_Base_SX_UP, Dato_Plot_SX_UP)&lt;BR /&gt;Chart.Series("SX_DOWN").Points.AddXY(Indice_Corrente - 1.3, Dato_Base_SX_DOWN, Dato_Plot_SX_DOWN)&lt;BR /&gt;End Sub)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why????????&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 18:44:42 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/cannot-plot-vertical-aligned-column-range-in-chart-net/m-p/4192029#M264</guid>
      <dc:creator>Giuseppe_Pezzella</dc:creator>
      <dc:date>2024-07-15T18:44:42Z</dc:date>
    </item>
    <item>
      <title>c# How to loop and count back in another loop?</title>
      <link>https://techcommunity.microsoft.com/t5/languages/c-how-to-loop-and-count-back-in-another-loop/m-p/4174974#M262</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var Quodown = new List&amp;lt;int&amp;gt;() {9,7,6,9,7,6,4,3,0};
double sumi = 0;
double avg = 0;
			
	for (int i = 8; i &amp;lt; Quodown.Count; i--)

                {
			sumi += Quodown[i];
					
			Print("sumi:  "+ sumi);
					
			//Print(i);
					
			for (int y = i; y &amp;lt;  8; y++)

		                {
							
				for (int z = Quodown.Count; z &amp;gt;  0; z--)
		
				                {
					avg = sumi / z;
					//Print("avg:  "+ avg);
									
					Print(z);
								}
							
						}
				
				
				}
			&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a movering average of numbers calculated backward.&lt;/P&gt;&lt;P&gt;For exemple, in the first part of the code i calculate the sum of&amp;nbsp; numbers backward 0+3 = 0,&amp;nbsp; 0+3+4= 7 etc.&lt;/P&gt;&lt;P&gt;I am trying to get the moving average of the sum of those numbers like average of 0 = 0 than&amp;nbsp; 3+0 = 3/2 = 1.5&amp;nbsp;&lt;/P&gt;&lt;P&gt;4 +3 +0 = 7/3 = 2.333&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;but using this loop it is dividing by its last position 8, 7 , 6 when it should be 3,2,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 16:40:37 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/c-how-to-loop-and-count-back-in-another-loop/m-p/4174974#M262</guid>
      <dc:creator>Frankduc</dc:creator>
      <dc:date>2024-06-24T16:40:37Z</dc:date>
    </item>
    <item>
      <title>Need help to display DataTable data on C# form</title>
      <link>https://techcommunity.microsoft.com/t5/languages/need-help-to-display-datatable-data-on-c-form/m-p/4169648#M261</link>
      <description>&lt;P&gt;I have 2 instances running, one is the application and another one is running as server. I have a log form to show some records added on the DataTable as&amp;nbsp; log information. Data row added during server runtime is not showing on the client instance form when click to open the form. I'm not familiar with C#, please share some ideas how can I achieve this, thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 15:09:02 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/need-help-to-display-datatable-data-on-c-form/m-p/4169648#M261</guid>
      <dc:creator>JohnLoh</dc:creator>
      <dc:date>2024-06-17T15:09:02Z</dc:date>
    </item>
    <item>
      <title>Blocking or synchronizing IHostedService services</title>
      <link>https://techcommunity.microsoft.com/t5/languages/blocking-or-synchronizing-ihostedservice-services/m-p/4152783#M260</link>
      <description>&lt;P&gt;Good morning:&lt;/P&gt;&lt;P&gt;I have a project in C# .NET 8 where I have several services (more than 2) IHostedServices running in the background. Each one does something different. My question is how could I block or synchronize the services when one is running? Let me explain: all these services write to the DB and are a bit heavy (4 or 5 seconds...maybe more). My idea is that only one be executed at a time, without priorities, FIFO queue type to avoid any blocking in the DB because they execute very large stored procedures and in some parts they have common tables.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 10:06:35 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/blocking-or-synchronizing-ihostedservice-services/m-p/4152783#M260</guid>
      <dc:creator>Rober2024</dc:creator>
      <dc:date>2024-05-27T10:06:35Z</dc:date>
    </item>
    <item>
      <title>Regenerate a PDF file with a PDF printer</title>
      <link>https://techcommunity.microsoft.com/t5/languages/regenerate-a-pdf-file-with-a-pdf-printer/m-p/4143615#M259</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;We have issues with PDF files which need to be re-generated, using the "microsoft print to PDF" printer fixed issues that we have.&lt;/P&gt;&lt;P&gt;How can I code that in C#? I have tried heaps of codes, nothing worked.&lt;/P&gt;&lt;P&gt;I have tried this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; try
 {
     ProcessStartInfo info = new ProcessStartInfo
     {
         FileName = filePath,
         Verb = "PrintTo",
         Arguments = "\"" + outputFilePath + "\" \"Microsoft Print to PDF\"",
         CreateNoWindow = true,
         WindowStyle = ProcessWindowStyle.Hidden
     };

     using (Process p = new Process())
     {
         p.StartInfo = info;
         p.Start();
         p.WaitForExit();
     }
 }
 catch (Exception ex)
 {
     MessageBox.Show(ex.Message);
 }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it's not adapter for Windows, or even :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; try
 {
     PrintDocument pd = new PrintDocument();
     ProcessStartInfo info = new ProcessStartInfo(filePath);
     info.Verb = "Print";
     pd.PrinterSettings.PrintToFile = true;
     pd.PrinterSettings.PrinterName = "Microsoft Print to PDF";
     pd.PrinterSettings.PrintFileName = outputFilePath;
     pd.Print();
     info.CreateNoWindow = true;
 }
 catch (Exception ex)
 {
     MessageBox.Show(ex.Message);
 }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which generates empty files...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 08:14:41 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/regenerate-a-pdf-file-with-a-pdf-printer/m-p/4143615#M259</guid>
      <dc:creator>basilic001</dc:creator>
      <dc:date>2024-05-17T08:14:41Z</dc:date>
    </item>
    <item>
      <title>How to prevent selected values from dropdown in wpf forms?</title>
      <link>https://techcommunity.microsoft.com/t5/languages/how-to-prevent-selected-values-from-dropdown-in-wpf-forms/m-p/4133381#M258</link>
      <description>&lt;P&gt;Hi Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i Team&lt;/P&gt;&lt;P&gt;How do i prevent other values when selected from the combo-box(comp1, comp2, comp2, truck-full, truck-return etc and these are queried from database as Dataset for them to filtered) if they are selected they must not gett into this if statement. Only required compartment(truck-empty) purpose('Leaving-Finished Product') must be the only onces get executed. The current code seem to be doing slight but not 100% percent being correct. Let me share this method below;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="applescript"&gt;private void btnSaveTicket_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (txtFullWeight.Text == "" || txtFullWeight.Text == "0")
                {
                    MessageBox.Show("Capture weight before saving");
                    Managers.WeighbridgeLogManager.InsertWBInfoLog("Capture weight before saving", "");
                    return;
                }
                if (cbxCompartment.SelectedIndex == 0)
                {
                    MessageBox.Show("Please select a Compartment", "No compartment selected");
                    Managers.WeighbridgeLogManager.InsertWBInfoLog("Please select a Compartment", "");
                    return;
                }
                if (cbxCustomer.SelectedIndex == 0)
                {
                    MessageBox.Show("Please select a Customer", "No customer selected");
                    Managers.WeighbridgeLogManager.InsertWBInfoLog("Please select a customer", "");
                    return;
                }
                if (cbxProduct.SelectedIndex == 0)
                {
                    MessageBox.Show("Please select a Product", "No product selected");
                    Managers.WeighbridgeLogManager.InsertWBInfoLog("Please select a product", "");
                    return;
                }


                if (txtBinsSelected.Text == "")
                {
                    MessageBox.Show("Please select a Bin", "No Bin selected");
                    Managers.WeighbridgeLogManager.InsertWBInfoLog("Please select a Bin", "");
                    return;
                }
                if (comboPurpose.SelectedIndex == 0)
                {
                    MessageBox.Show("Please select a Purpose", "No purpose selected");
                    Managers.WeighbridgeLogManager.InsertWBInfoLog("Please select a purpose", "");
                    return;
                }
                //if (comboPurpose.Text.ToUpper() != "SELECT A PURPOSE")
                //{
                    if (txtFullWeight.Text == "")
                    {
                        MessageBox.Show("Please capture weight", "No Weight entered");
                        Managers.WeighbridgeLogManager.InsertWBInfoLog("Please capture weight", "");
                        return;
                    }


                // Check if the compartment selected is "truck-empty" and the purpose is "Leaving-Finished Product"
                if (cbxCompartment.SelectedItem != null &amp;amp;&amp;amp;
                    string.Equals(cbxCompartment.SelectedItem.ToString(), "truck-empty", StringComparison.OrdinalIgnoreCase) &amp;amp;&amp;amp;
                    cbxPurpose.SelectedItem != null &amp;amp;&amp;amp;
                    string.Equals(cbxPurpose.SelectedItem.ToString(), "Leaving-Finished Product", StringComparison.OrdinalIgnoreCase))
                { 
                }
                    // Check if both TopSeal and BottomSeal are empty
                    if (string.IsNullOrEmpty(txtTopSeal.Text.Trim()))
                    {
                        MessageBox.Show("TopSeal cannot be empty when the truck is empty and the purpose is Leaving-Finished Product", "Validation Error");
                        txtTopSeal.Focus();
                        return;
                    }

                    if (string.IsNullOrEmpty(txtBottomSeal.Text.Trim()))
                    {
                        MessageBox.Show("BottomSeal cannot be empty when the truck is empty and the purpose is Leaving-Finished Product", "Validation Error");
                        txtBottomSeal.Focus();
                        return;
                    }
                

            

                presenter.SaveTicket();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error");
                Managers.WeighbridgeLogManager.InsertWBErrorLog(ex.Message, TripSheetNo.ToString() == "" ? "" : TripSheetNo.ToString(), ex.StackTrace, ex.InnerException == null ? "" : ex.InnerException.ToString());
                return;
            }

        }&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 May 2024 12:09:09 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/languages/how-to-prevent-selected-values-from-dropdown-in-wpf-forms/m-p/4133381#M258</guid>
      <dc:creator>gcizman2024</dc:creator>
      <dc:date>2024-05-07T12:09:09Z</dc:date>
    </item>
  </channel>
</rss>

