Welcome To Snipplr


Everyone's Recent Snippets Tagged c#



« Prev 1 2 3 4
  1. FAV

    For loop using foreach on a string value

    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-...
    C# 4 views posted 2 years ago by clinaq
  2. FAV

    C# - Convert decimal value of integer type to binary value of string type

    Microsoft Official Documentation: https://msdn.microsoft.com/en-us/library/8s62fh68(v=vs.110).aspx
    C# 7 views posted 2 years ago by clinaq
  3. FAV

    C# motion detection source code: How to achieve tripwire with a USB webcam

    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...
    C# 7 views posted 4 years ago by chewie-wookiee
  4. FAV

    How to achieve auto answer for SIP telephony in C#

    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...
    C# saved by 2 people 4 views posted 4 years ago by sacha-manji
  5. FAV

    How to achieve auto answer for SIP telephony in C#

    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...
    C# saved by 2 people 4 views posted 4 years ago by sacha-manji
  6. FAV

    How to implement conference calling for a SIP softphone in C#?

    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...
    C# 7 views posted 4 years ago by warnerBro19
  7. FAV

    How to add text-to-speech and speech-to-text features to your SIP software by using Microsoft Speech Platform in C#?

    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...
    C# 6 views posted 4 years ago by warnerBro19
  8. FAV

    How to implement text-to-speech during a SIP voice call in C#?

    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...
    C# saved by 8 people 4 views posted 5 years ago by warnerBro19
  9. FAV

    (C# tutorial) How to create edge detection function

    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#...
    C# 10 views posted 5 years ago by DaniBarros
  10. FAV

    How to implement corner detection (C#)

    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...
    C# 7 views posted 5 years ago by MahendraGadhavi
  11. FAV

    How to capture frames from a camera in C#

    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...
    C# 5 views posted 5 years ago by AdrianVasilyev
  12. FAV

    How to send SMS using ASP.NET through HTTP

    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...
    ASP 8 views posted 5 years ago by Gupta86
  13. FAV

    How to make SIP video calls in C#

    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...
    C# 12 views posted 5 years ago by sacha-manji
  14. FAV

    C#/C++ Shared enum

    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.
    C# 9 views posted 5 years ago by xXxPizzaBreakfastxXx
  15. FAV

    Moq: Verify that a method is not called

    Verify that the Execute("ping") method is never called.
    C# 4 views posted 5 years ago by heathbo
  16. FAV

    web api client getting the Remote server returned an error:500

    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...
    C# 5 views posted 5 years ago by guru2015
  17. FAV

    Traverse nested lists (IEnumerable)

    Credit: Tim Schmelter
    C# 3 views posted 5 years ago by RhinoX64
  18. FAV

    Moq: Verify a Method is Called

    The code to verify that a method was called. The this.mockProvider.Verify verifies that GetBiAutoProcessConfigByKeys is called.
    C# 7 views posted 5 years ago by heathbo
  19. FAV

    Moq: test to see if exception is thrown

    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....
    C# 14 views posted 5 years ago by heathbo
  20. FAV

    Moq: check to see the value of passed in parameters.

    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.
    C# 9 views posted 5 years ago by heathbo
  21. FAV

    C#: Using StringBuilder for Concatnation

    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 +=
    C# 12 views posted 5 years ago by zeke
  22. FAV

    PHP Code Sample to Replace Multiple Text in PDF File Using Cloud API

    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...
    PHP 7 views posted 5 years ago by johansonkatherine
  23. FAV

    C# Code Sample to Replace Multiple Texts inside PDF File Using Cloud API

    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...
    C# 5 views posted 5 years ago by johansonkatherine
  24. FAV

    Suma de los múltiplos de 3 y 5 entre 0-1,000 [usando Loop \"For\"]

    **Ejemplo:** Los múltiplos de 3 y 5 en el rango 0-10 son: 3, 5, 6, 9; y su suma es 23.
    C# 3 views posted 5 years ago by g3r4
  25. FAV

    Java Code Sample to Create PDF from HTML Using REST API

    This code sample shows how Java developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
    Java 7 views posted 5 years ago by johansonkatherine
  26. FAV

    C# Code Sample to Create PDF from HTML Using REST API

    This code sample shows how C# developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
    C# 7 views posted 5 years ago by johansonkatherine
  27. FAV

    C# get release date from Umbraco post

    You could use this snippet as an Umbraco XSLT Extension to be able to get releasedate from the Umbraco post in XSLT.
    C# 2 views posted 5 years ago by Reiff
  28. FAV

    C#/.NET Code Samples to Save Microsoft OneNote (.one) file as an image (.PNG, .BMP, .JPEG, .GIF) file

    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
    C# 6 views posted 5 years ago by johansonkatherine
  29. FAV

    Data Table Bible

    http://www.dotnetfunda.com/articles/show/131/datatable-adding-modifying-deleting-filtering-sorting-rows-readingwrit
    C# 4 views posted 6 years ago by thetwai
  30. FAV

    Numeric input validator behavior

    behavior for validating numeric input
    C# 5 views posted 6 years ago by dck11
« Prev 1 2 3 4