About 24,200,000 results
Open links in new tab
  1. What does a question mark mean in C# code? [duplicate]

    49 Question marks have different meaning in C# depending on the context. The Null-Conditional Operator (MSDN, What does the question mark in member access mean in C#?)

  2. How to execute a PowerShell script using C# - Stack Overflow

    Apr 28, 2020 · Running .ps1 from C# is a really common thing, with many examples all over the web and videos on Youtube showing how/with examples. Call a Powershell script from c# …

  3. .net - How do I create an Excel (.XLS and .XLSX) file in C# without ...

    Assuming you were trying to do something sans library or external code, I can't speak for xls file, but for xlsx files, why not start by taking an existing one, renaming it to a zip file and exploring …

  4. How to run Command Prompt commands from C# - Stack Overflow

    Is there any way to run command prompt commands from within a C# application? If so how would I do the following: copy /b Image1.jpg + Archive.rar Image2.jpg This basically embeds …

  5. MarkdownSharp & GitHub syntax for C# code - Stack Overflow

    Feb 4, 2015 · ```c# //my code..... ``` So, if I pass Markdown formatted content to MarkDownSharp, containg a C# code block (as above) I want it to generate syntax highlighted html for that c# …

  6. C# 'or' operator? - Stack Overflow

    Jan 18, 2014 · C# supports two boolean or operators: the single bar | and the double-bar ||. The difference is that | always checks both the left and right conditions, while || only checks the …

  7. c# - How to get the name of the current method from code

    Apr 16, 2010 · In C# version 5 and .NET 4.5 you can use the [CallerMemberName] attribute to have the compiler auto-generate the name of the calling method in a string argument. Other …

  8. email - Sending E-mail using C# - Stack Overflow

    1 Use the namespace System.Net.Mail. Here is a link to the MSDN page You can send emails using SmtpClient class. I paraphrased the code sample, so checkout MSDNfor details.

  9. .net - execute c# code at runtime from code file - Stack Overflow

    Nov 15, 2010 · I have a WPF C# application that contains a button. The code of the button click is written in separate text file which will be placed in the applications runtime directory. I want to …

  10. c# - Is there a format code shortcut for Visual Studio? - Stack …

    Jul 20, 2019 · In Eclipse there is a shortcut, Ctrl+Shift+F, that re-indents code and fixes comments and blank lines. Is there an equivalent for Visual Studio 2010?