Hey
I'm in the situation where i need to do some math related stuff in c# and for that i need some external libarys. The tool i look for should do the following actions:
Process sound(wave/mp3):
Normalize the amplitude
Normalize the phase
Any idea which way to go? And is there a big difference if I should to it on mp3 instead of w...
I have code like this:
string uriString = @"C:\Temp\test.html";
Uri uri = new Uri(uriString);
bool goodCond = uri.IsWellFormedOriginalString();
But goodCond is false! What am I doing wrong?
Edit:
Thanks Johannes and Catdirt. I'll focus my question: How do I convert a valid file path to a valid file Uri (using uri.IsWellFormedOrigin...
I know instrumentation is a technique to add trace code dynamically into the methods to enable tracing and debugging.
I was wondering if this is only a "Trace" option, hard coded into the CLR to add only trace code, or is there the ability to add any code to the methods?
For example, I want to check for a condition in the beginning of ...
I break the code of the for loop without using break like I have for loop given below.And when i is 1 or 2 or 3 or any else but if condition is true then loop will be terminated because i will be 5 if the condition is true.And so NO need of break is needed there.Beacause I do not want to use break.I have done like this here.It works.
in...
This is the exception that I am getting when I run my application with the Managed Fusion Url Rewriter installed.
Exception Details: System.MissingMethodException: Method not found: 'Boolean System.Web.HttpRuntime.get_UsingIntegratedPipeline()'.
Source Error:
An unhandled exception was generated
during the execution of the curre...
I am editing a certain website which before used the port 80 (default) that was not required at the url (because it's default..)
But the port had (for technical reasons) to be changed, and now it has to be informed.
I can access the main page through ip:port\page like this:
1.2.3.4:81\page.aspx
Every link in the website is composed ...
We have custom headers in the Silverlight DataGrid using the ContentTemplate. We've got a button in the header and need to programmatically access the button to hook up the event. We're using IronPython, so we can't statically bind the event in the xaml (plus we use the grid for many different views - so we dynamically generate the xaml)...
Is there a good .Net Calendering Engine (standalone) available that provides support for events, recurring events, reminders, invitations etc.
...
We've written a Java program which we are looking to use and interact with from C#. What are our options? Optimally it would be possible to compile the Java application as a library (.DLL) that we could reference from C# perhaps using P/Invoke. This, however, doesn't appear to be an option according to the first few searches online.
We ...
Hello,
how to send e-mail via socks5 proxy in c#?
Is threre a free solution?
...
I have one very general object that I want to map to a destination type using AutomMapper, but I want to map it to different types depending on the value of a property in the source type. For example, let's say I have:
public class Source
{
public string Discriminator { get; }
public string ValueA { get; }
public string Valu...
Why does an event handler never get called if it's added within a loop on an ienumerable?
For instance:
IEnumerable<MyType> list = someCollection.Select(i => new MyType(i));
foreach (var item in list)
item.PropertyChanged += item_PropertyChanged; <-- this never gets called
Bu if list is assigned like
list = someCollection.Select(i ...
I mean, an add-in that allows me to associate image and sound files with a comment in the middle of the code. Does this exist already?
That would be great to help people to understand other's code. As the wise said: An image is worth a thousand words...
...
Hi,
I'm having an issue with the WSDL generator in .NET. It is missing out on complex types in one specific method.
Response from web service
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=...
The .NET MemoryStream does not appear to have a .Reset or .Clear method.
I was thinking of using the following code to accomplish this:
ms.Seek(0, IO.SeekOrigin.Begin)
ms.SetLength(0)
What is the proper way to clear or reset an existing .NET MemoryStream?
...
I've included the necessary assemblies into a Windows Class project in VS2008. When I start to try to write a test I get a red squiggle line and the message [Test] is not a valid attribute. I've used NUnit before... maybe an earlier version. What am I doing wrong? I'm on version 2.5.2.
using System;
using System.Collections.Generic;
usi...
I have the following types and classes:
{
namespace MVC.Models
public class Page
{
public EditableContent Content {get; set; }
}
public class EditableContent
{
public TemplateSection SidebarLeft {get; set; }
public TemplateSection SidebarRight {get; set; }
}
}
I want to edit...
Hello,
I use a .NET richtextbox and I want to have the EnableAutoDragDrop property set to True. This allows user to drag&drop text, rtf and images around etc.
However, I need to process files dropped into the richtextbox myself - I do not want them to be embedded as OLE objects when they are dropped.
How can I overcome this? Is there ...
What is the relative performance cost of calling a method over in-line code?
...
Hi guys,
From within a webmethod (.net asmx file) - is it possible to determine from where the call to the webmethod came?
Thank you
...