.net

Credit Card Gateway? - API, Price

We are looking for Credit Card gateway for our new project. There is mess out there, all just try to cut you in pieces. Everytime i talk to them they have different rate and every time they update quote they have some price changed. We are having this project in .net, C#, asp.net. So considering above this what could be the best gatewa...

Best Aspect Oriented Framework for features / build performances in .net

Hi, In various projects I worked with, we had to use some AOP or dependency injection framework. We used Enterprise LIbrary, Unity and PostSharp. For now, Postsharp is my best choice when it comes to the flexibiity I get over how I generate my aspects. The only problem is the build time required once PostSharp is installed. My dev...

Is int[] a reference type of value type?

I know an int is a value type, but what are arrays of value types? Reference types? Value types? I want to pass an array to a function to check something. Should I just pass the array, as it will just pass the reference of it, or should I pass it as ref? ...

How to use LuaInterface on Mono/Linux

When I try to use LuaInterface on Mono on Linux (using Mono 2.0 on Ubuntu 9.04) I get the following exception: ** (ParallelTasksSimulator.UI.exe:8599): WARNING **: Method ':.DoDllLanguageSupportValidation ()' in assembly '/home/ulrich/test/Debug/lua51.dll' contains native code that cannot be executed by Mono on this platform. The as...

Multiple Sorting on LINQ (nested) method

I have the below LINQ method which gets called from a User Control and dumped straight to a standard DataGridView. My users want it default sorted, first, by DisenrollmentDate and then, Member Name. Right now, with the code below, it sorts by DisenrollmentDate ONLY. BLLCmo.cs public static DataTable GetAllMembers(Guid workerID)...

How to load EPS files and draw them using WinForms

Is it possible to load and display EPS file using plain WinForms GDI+? If not, is there a free library to help out? I seem to remember that Windows GDI supported EPS files, but after Googling around a bit, I am starting to doubt that memory. All I want to do is load the file and draw it using a Graphics context. I am aware that I can ...

Convert a 'css' or 'json' style string into a Hash/Dictionary or Kvp<T,T> ?

Does anyone know if there is a way to convert the following string into an object? "width: 100px; height: 20px; border: solid 1px black;" As you notice, this is a standard CSS property. I know it would be fairly trivial to split on ';' and do the work myself, but looking at some other languages it seems they have native support to do...

Managing LDAP groups and group membership in Novell eDirectory using .NET

I am new to LDAP development so please forgive my ignorance on the subject. I am on a project where I need to manage groups and group membership in Novell eDirectory using .NET. I have found several examples of creating groups in Active Directory but all of these examples use SamAccountName which is specific to active directory. Can any...

Is there any open source mocking framework resembling TypeMock?

TypeMock is too expensive for a hobbist like me :) Moq or the next version of RhinoMocks have no plans on listening to the profiling API, why is that? EDIT: This enables features such as: Mocking non-virtual methods and properties (!). Mocking browser environments. simpler syntax which is less fragile (and not having to go trough...

TeamCity MSBuild Gallio NCover Reporting

Hi All, I'm a complete build system newbie through and through. I've been playing with this for about two weeks on and off now and I just can't crack it, I think I've reached a point where I need a fresh pair of eyes. Ultimately I'm aiming for having a new NCover coverage report (the summary one at least) in my TeamCity build project....

RIA Services - IQueryable Function With Multiple Parameters as Conditions

Hi, I am developing an application with RIA Services, and in my DomainService class, I have all that standard functions generated by the RIA for general CRUD operations. The problem is that I tryed to create my own function that insted of listing all the the 45 columns in the Select statment, would list only 2 (NOM and PRENOM) and also ...

Is there a way to determine in .Net (or WMI) if a print driver will print to PCL or PostScript format when printing to a file?

Is there a way to determine in .Net (or WMI) if a print driver will print to PCL or PostScript or XPS format when printing to a file? ...

Newbie needs to know how to parse a whole text group like this

I need to parse a textfile with about 10000 groupings like this group "C_BatTemp" -- block-group { block: "Constant" flags: BLOCK|COLLAPSED } -- Skipping output Out1 p_untitled_P_real_T_0[1] { type: flt(64,IEEE)* alias: "Value" flags: PARAM } endgroup -- block-group "C_BatTemp" The desired objects I expect the parser...

C#: Restrict .Net remoting to accept localhost connections only

I am using .Net Remoting to handle intra-process communication between a master service and numerous (sometimes 50+) instances of a small client library. From a security standpoint, it is imperative that the service only accepts connections from the local machine, and noone else -- yet I cannot find any information on how one does this, ...

Is it ever acceptable to return True when the parameter to Equals is a null reference?

The docs for Object.Equals says that implementors must return false if the parameter is a null reference. In my class, I'm overriding Equals to check for value equality. I have a member variable which is similar to the Nullable (T) structure. My initial inclination is to return True when I'm passed a null reference and my structure's ...

Where should I put configuration files in .NET?

In .NET, how should I get access to a folder for holding configuration data specific to the current machine or user (to avoid hard-coding a path)? (related:) http://stackoverflow.com/questions/1152065/which-is-the-best-location-to-keep-program-configuration-file-in-windows Question answered... by the way, here's typical WinXP output of...

XmlSerializer Performance Issue when Specifying XmlRootAttribute

I'm currently having a really weird issue and I can't seem to figure out how to resolve it. I've got a fairly complex type which I'm trying to serialize using the XmlSerializer class. This actually functions fine and the type serializes properly, but seems to take a very long time in doing so; around 5 seconds depending on the data in ...

Generate all Permutations of text from a regex pattern in C#

So i have a regex pattern, and I want to generate all the text permutations that would be allowed from that pattern. Example: var pattern = "^My (?:biological|real)? Name is Steve$"; var permutations = getStringPermutations(pattern); This would return the list of strings below: My Name is Steve My real Name is Steve My biological ...

cf.net app protection (antidebug, obfuscate)

Is there any out-of-the box solution that protects cf.net (3.5) software against reverse engineering and unlicensed redistribution (average hacker protection)? Any option of packer/native wrapper? ...

Can a Web Deployment Project support quiet installation

I need to install a web deployment fromn a quiet installation and pass in the web directory, installation directory etc. I know that the values of the MSI are available to a custom action, but my experience is that in quiet mode these get overwritten by the default value on the GUI even when in quiet mode. Am I wrong on this assumption...