Welcome To Snipplr


Everyone's Recent Snippets Tagged c#



« Prev 1 2 3 4
Using foreach to loop over each character letter in a string. Microsoft Official Reference: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/foreach-in Explanations from other websites: https://www.dotnetperls.com/loop-...
0 251 posted 3 years ago by clinaq
Microsoft Official Documentation: https://msdn.microsoft.com/en-us/library/8s62fh68(v=vs.110).aspx
0 374 posted 3 years ago by clinaq
Tripwire is a special part of motion detection that can be used to monitor and alert on specific changes. More specifically: tripwire means the detection of intrusion. This code snippet presents how to create a C# software by using prewritten comp...
0 253 posted 5 years ago by chewie-wookiee
I had a go at softphone development some months ago. It isn’t secret that I want to build a powerful IVR system to make the current call centers much more effective. Yes, there are many similar software available on the market for this purpose, but...
0 217 posted 5 years ago by sacha-manji
I had a go at softphone development some months ago. It isn’t secret that I want to build a powerful IVR system to make the current call centers much more effective. Yes, there are many similar software available on the market for this purpose, but...
0 220 posted 5 years ago by sacha-manji
A conference call is a meeting, conducted over the phone using audio, between two or more people and usually for the purposes of discussing a particular topic. In my former snippets I dealt with text-to-speech and speech-to-text functionalities. So t...
0 243 posted 5 years ago by warnerBro19
In my previous snippet I have written about converting text to speech using C#. This code snippet can be used not just for allowing your computer to read txt aloud, but also for speech recognition. To implement this functionality I used Microsoft Sp...
0 342 posted 5 years ago by warnerBro19
I have heard about this solution on the Facebook, and I thought it is worth to share my source code to help other developers interested in converting text to speech using C#. Text-to-speech refers to the ability of computers to read txt aloud. This f...
1 263 posted 5 years ago by warnerBro19
I am really interested in Computer Vision technology, so I started to dig deeper in this topic. This is how I found the code below for edge detection, a method belonging to object detection. If you are interested in implementing edge detection in C#...
0 230 posted 5 years ago by DaniBarros
You can find the full source code for corner detection here. I found this solution on www.camera-sdk.com and it worked for me fine. I created a Visual C# WPF application in Visual Studio, and added two .dll files (VOIPSDK.dll and NVA.dll) to the refe...
0 250 posted 5 years ago by MahendraGadhavi
If you wish to make your home, office or warehouse more secure, taking frame captures can be a very useful solution for you. And I can tell you this because I’ve already implemented this function at my office. Now I am sharing the prewritten source...
0 303 posted 5 years ago by AdrianVasilyev
Hello Guys, This short ASP.NET code snippet is intended to provide you a brief review on how to add SMS functionality to your website. You will see, this is a very simple but smart solution. This ASP.NET application is able to send messages by usi...
0 240 posted 5 years ago by Gupta86
While searching on the Internet on how to make SIP video calls using C#, I recognised that there aren’t any brief and straightforward tutorial in this topic. I found multi-page articles (sorry, but some of them are full of bullsh*t) and neverending...
0 289 posted 5 years ago by sacha-manji
If you are using c++/cli or UnmanagedExports, this is a useful way to share enum int values between c++ and c# code/DLLs without worrying about duplicated code going out of date.
0 211 posted 5 years ago by xXxPizzaBreakfastxXx
Verify that the Execute("ping") method is never called.
0 248 posted 5 years ago by heathbo
I have completed my code my its giving me The remote server returned an error: (500) Internal Server Error. I been trying with Get and Post method but not luck, can anyone help me to view what I could doing wrong? Here you have my code, as you can se...
0 212 posted 6 years ago by guru2015
Credit: Tim Schmelter
0 139 posted 6 years ago by RhinoX64
The code to verify that a method was called. The this.mockProvider.Verify verifies that GetBiAutoProcessConfigByKeys is called.
0 214 posted 6 years ago by heathbo
The ExpectedException section under [TestMethod] is where you tell Moq what type of exception your listening for. If that exception is thrown, then this test will pass and it will stop running all the code under the target.CalculateProvisionalPrice....
0 397 posted 6 years ago by heathbo
Example 1: I'm verifying that the list that is passed in has 3 attachments. SendMail is run later in the SendEmail method. Example 2: I'm verifying that the object that is passed into the method has the appropriate values.
0 315 posted 6 years ago by heathbo
StringBuilder class is a much better way to concatenate strings. Unlike a string object it can be changed as needed, and is much more efficient than using +=
0 145 posted 6 years ago by zeke
The following code sample shows how developers can replace multiple texts in a single API call in a PDF file using Aspose.Pdf for Cloud API in their applications. Developers can use Aspose REST API with any language: .NET, Java, PHP, Ruby, Rails, Pyt...
0 371 posted 6 years ago by johansonkatherine
The following code sample shows how developers can replace multiple texts in a single API call in a PDF file using Aspose.Pdf for Cloud API in their applications. Developers can use Aspose REST API with any language: .NET, Java, PHP, Ruby, Rails, Pyt...
0 243 posted 6 years ago by johansonkatherine
**Ejemplo:** Los múltiplos de 3 y 5 en el rango 0-10 son: 3, 5, 6, 9; y su suma es 23.
0 185 posted 6 years ago by g3r4
This code sample shows how Java developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0 268 posted 6 years ago by johansonkatherine
This code sample shows how C# developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0 276 posted 6 years ago by johansonkatherine
You could use this snippet as an Umbraco XSLT Extension to be able to get releasedate from the Umbraco post in XSLT.
0 168 posted 6 years ago by Reiff
The Aspose.Note for .NET API allows developers to open files & manipulate elements of OneNote books & export them to PNG, GIF, JPEG, BMP and PDF formats. The following code sample shows developers how to save OneNote File as an image in C#/.NET
0 316 posted 6 years ago by johansonkatherine
http://www.dotnetfunda.com/articles/show/131/datatable-adding-modifying-deleting-filtering-sorting-rows-readingwrit
0 104 posted 6 years ago by thetwai
behavior for validating numeric input
0 138 posted 6 years ago by dck11
« Prev 1 2 3 4