I'm trying to deep clone an object which contains a System.Random variable. My application must be deterministic and so I need to capture the the random object state. My project is based on .Net Core 2.0. I'm using some deep clone code from here (How do you do a deep [...] read more
I am sending a csv file to an Azure Service Bus Queue from a .NET 3.5 based C# solution. Since the Service Bus nuget packages aren't available in .NET 3.5, I am using the Rest API. byte[] file = File.ReadAllBytes(@"VehicleContacts.csv"); string url = baseAddress + queueName + "/messages" + "?timeout=60&api-version=2013-08 [...] read more
We currently have a mechanism of calling our web services in a test page. However, I am trying to look at the better practices of WCF services and using the FaultException. So there are cases when the FaultException is thrown by our service, I want to serialize the fault as [...] read more
I'm trying to make an application that can dynamically load and unload an after-market assembly and create an object of a type defined in that assembly, but I'm running into problems when the object has an iterator method. Stay with me -- the Minimal, Reproducible Example is a little bit [...] read more
I have a class marked as [Serializable]. It has a property tha I don't wan to serialize. But at runtime I got an error during serialization. These are my classes: public interface IMyNonSerializable { ... } public class MyNonSerializable : IMyNonSerializable { ... } [Serializable] public class MySerializable { public [...] read more