.net

Need .NET library fo converting TIFF files to PDF

Does anyone know of a good .NET library to convert TIFF files, that may be multi-page, to PDF files? The TIFF files are stored on a file share, and the PDF files need to be stored in the same location as the TIFF file. The tool is supposed to be used for converting high volumes of TIFF files. ...

How to create a .Net DateTime from ISO 8601 format

I've found how to turn a DateTime into an ISO 8601 format, but nothing on how to do the reverse in C#. I have '2010-08-20T15:00:00Z' and I want to turn it into a DateTime object. I could separate the parts of the string myself, but that seems like a lot of work for something that is already an international standard. ...

Reading custom binary data formats in C# .NET

Hi, I'm trying to write a simple reader for AutoCAD's DWG files in .NET. I don't actually need to access all data in the file so the complexity that would otherwise be involved in writing a reader/writer for the whole file format is not an issue. I've managed to read in the basics, such as the version, all the header data, the section l...

adding exported parts to an exisiting MEF container

Is there a way to add exported parts from a catalog to an existing MEF CompositionContainer? I'm aware of ComposeExportedValue extension method, but what if I wanted to add a whole DirectoryCatalog to the list of exports? I don't need recomposition in this case, btw. ...

Why we need Thread.MemoryBarrier()?

In C#4 in a Nutshell, the author show that this class can write 0 sometimes without MemoryBarrier. I can´t reproduce in my Core2Duo: public class Foo { int _answer; bool _complete; public void A() { _answer = 123; //Thread.MemoryBarrier(); // Barrier 1 _complete = true; //Thread.MemoryB...

Lots of xml files - need search and filter

Hi, I have data in xml files (about 5000), need to search and filter this data. It would be wonderful if i can use Fuzzy Search. Suppose need use index? index of the attributes? what should I do use xml database, something like lucene? I prefer .net. ...

How suitable is JIRA Studio for .NET development?

My previous employer was a Java shop. We used JIRA Studio -- JIRA, Subversion, and other integrated tools, hosted by Atlassian -- and we were very happy with it. My current employer is a .NET shop. What experiences (if any) do you have using JIRA Studio for .NET development? My concern is that certain parts of JIRA Studio may not work f...

Does Func<T>.BeginInvoke use the ThreadPool?

When you call the BeginInvoke method on a Func delegates (or the Action delegates for that matter) in C#, does the runtime use the ThreadPool or spawn a new thread? I'm almost certain that it'll use the ThreadPool as that'd be the logical thing to do but would appreciate it if someone could confirm this. Thanks, ...

Why is a control destroyed twice when it's nested in a tab control?

I've been trying to debug why closing windows forms designer is crashing visual studio and have discovered by adding a series of message boxes that if my controls are nested inside a System::Windows::Forms::TabControl the destructor of those controls are called twice. Is that expected behaviour and is there a way of avoiding it? ...

Why is my code not using available processor cycles?

I have written a plugin for ESRI ArcEditor that runs some validation checks on a road network. To check if the rules are all satisfied, it basically does a whole bunch of different intersects, with some buffering and envelopes etc. on the selected features. It has been written in C#. Now what I am noticing is that it really takes a lon...

Are there any .NET tools that can generate forms based on some kind of metadata?

What i want is to describe a form (fields with types, names, validation rules) via some xml or dsl. Then, in the runtime my code feeds this tool with metadata, it generates form (web, win forms, whatever), it's shown to a user, user inputs data, pushes OK, tool calls my code via some delegate with values as key-value dictionary. Of cours...

NullReferenceException on this simple C# code.

Edit: The line of code that gives the exception is "foreach (Column column in table.Columns) " and that's because the Table table object is null. How would I load a Table object? My code seemed to be the right approach but it doesn't work as expected. :D I'm pulling a list of all columns in a given SQL table, and then loading them to a ...

How to use reflection to get just the object instance's public properties?

I'm reflecting on an object and only want the public properties of an instance, I don't want public static properties. The problem is GetProperties() returns both static and instance public properties. Anyone have an idea how to best approach this problem? private IOrderedEnumerable<PropertyInfo> GetSortedPropInfos() { return data...

MVCContrib Grid and nun-nullable parameter

I'm using the MVCContrib Grid. My controller action accepts 3 parameters, the sortoptions and paging parameter for the grid, and a ResourceID parameter, that specifies which resource you want to view bids for. When i click on the links i get the following error The parameters dictionary contains a null entry for parameter 'Resource...

VStudio theme in eclipse ?

I am a .net developer working with VStudio from few years. Now due to some priority I have to work in java using eclipse studio. I am very fond of vstudio theme and color.. can someone help me to find vstudio theme for eclipse ? ...

Visual Studio 2008 CAS / Security settings

Hi, I have a windows service that along with several other projects (class librarys) make up a solution. The service also references the Quartz scheduler (from soundforge) and NValidate ( these are not in the GAC) When I try and view the security settings for the service I receive the following error: "Visual Studio was unable to det...

How to copy data from dataset to a type dataset using automapper?

Hi, i am trying to copy data from a standard Dataset to a Type Dataset (XSD) of same table structure. i want to use Automapper to do that one. So how can i do that using automapper? ...

IEnumerable collection to List

Hi all, I've written a CustomerCollection class, which implements the IEnumerable and IEnumerator interfaces. Now I want the CustomerCollection class object to be searchable by Where() And Find() function and also would like to get a List object of type Customer From the CustomerCollection class. Please help. Also, is the implementation ...

How is memory allocated for an ASP.NET website?

Hi All, My website is using a lot of memory and I have downloaded the trial of ANTS Memory Profiler. The site is using XML files to store the the categories and the items that belong in those categories - I then traverse the files (4mb for the categories file and about 800kb for the items file stored on the local machine (web server)) a...

DotNetOpenAuth: How to implement a simple OpenId provider?

Every OpenId provider has a provider Url (e.g Google: https://www.google.com/accounts/o8/id) Using OpenIdRelyingParty.CreateRequest I successfully managed to redirect the user to Google provider Url and receive the provider callback. Everything worked fine. Now I'm trying to implement my own simple OpenId provider (I want to act as Goo...