When I compile a .net program I can tell it to compile for /platform:anycpu or /platform:x86 etc. Is there someway I can determine what platform value a .net exe/dll has been compiled with?
See my answer below for a program that determines the platform flag. Or use corflags.exe.
...
Interested in writing an iPhone app but don't want to buy a mac or learn objective-c. I was excited to see that you could do this using Mono but haven't found too many resources out there.
Does anyone know of any good online tutorials for writing your first iPhone app using Mono?
...
I have a dictionary whose values I'd like to return to a caller like this:
public ICollection<Event> GetSubscriptions()
{
return isLockDown ? Enumerable.Empty<Event> : subscriptionForwards.Values;
}
Unfortunately, the empty enumerable type is not compatible with the stated return type. Is there another BCL facility for this?
p.s...
What is the GTK equivalent to BackgroundWorker in Mono?
I've tried the following website: http://monodevelop.com/Developers/Articles/Thread_Management, but there doesn't seem to be any such thing as DispatchService. I need to update the GUI asynchronously at given intervals.
...
I'm trying to debug an assembly that has been compiled in Release mode, so all the "good stuff" like local variables are Optimized away.
As a second approach, I would like to see the IL and the .net Stack, but I don't seem to have that option in Visual Studio 2010 - I only have Disassembly, Registers and Memory View, which is one level ...
I have a C# application I'm working on with which I want to use the excellent LuaInterface. However when I run the application I get this exception when I try to do something with LuaInterface:
Mixed mode assembly is built against
version 'v2.0.50727' of the runtime
and cannot be loaded in the 4.0
runtime without additional
c...
I want to create a Windows Service that tracks if the A/C power adapter is plugged in or not. For that, I am trying to build Windows Service as below:
using System;
using System.ServiceProcess;
namespace PowerAlert {
partial class PowerAlert : ServiceBase {
public PowerAlert() {
InitializeComponent();
}
...
I am using C# 3.5 .NET and Windows Form
I have this code to manage the Brightness of an image, it activates when the trackBar ValueChanges
public void brightnesstrackBar1_ValueChanged(object sender, EventArgs e)
{
domainUpDownB.Text = ((int)brightnessTrackBar.Value).ToString();
B = ((int)brightnessTrackBar.Value);
...
I have a need to accept form data from other web sites to a central MVC application. The form data is just strings of name value pairs and they vary from site-to-site. I plan to concatenate all values and delimit them with a special character. Up to this point, I think I can do this with a JSONP type request using AJAX. What I'm conc...
Hi folks,
I was wondering if I could - and how - I could use the Factory Pattern in this scenario?
I have a the following classes...
public interface IStub<T> where T : class
{
IEnumerable<T> CreateStubs();
}
public FooStub : IStub<Foo>
{
public IEnumerable<Foo> CreateStubs() { ... }
}
public BarStub : IStub<Bar>
{
publ...
Guys,
Can you please tell me that ,I wants to learn Azure , by creating one - two
sample Application, then is there any free account category on Microsoft azure portal ?
So that I can decide whether to go for Azure or remain stayed with Amazon EC.
...
Hi
I have to give my customer my application it's a simple application( 3Mo)
well I thing it's realy unnecessary to oblige my client to install the hole .NET framework(the 3.5) to work with a simple application ( 3 mo) I mean I'm sure that there is a way to avoid that, Just includ some dlls mybe or something like that
Well I have the d...
I am using an unmanaged library in a .net application which is used on x86 and 64bit systems alike and therefore is compiled as 'Any CPU'. The unmanaged, native .dll however comes in two different .dlls for that (one for win32 and one for x64).
Is there any way to still keep the 'Any CPU' / one binary way with different native .dlls reg...
I need to have control over what URLs are allowed to be indexed. To do this I want to allow google to index only URLs that are listed in my Sitemap(s), and disallow Google from indexing anything else.
Easiest way to solve this is if there is a way to configure robots.txt to disallow everything:
User-agent: *
Disallow: /
And ...
Hi,
I have a solution with the following structure:
Solution
Main Exe
Utilities
When I use MEF within the Utilities project I find that neither of the following MEF catalogues pick up types held within the Main Exe
catalog.Catalogs.Add(new AssemblyCatalog(Assembly.GetExecutingAssembly()));
catalog.Catalog...
Hello Guys,
I have to develop a ERP System for a 2,000+ end users Organisation.
Could You please suggest me with comparable points that among (Java or .Net)
in which technology I should invest money and time? Although I have done
some average projects in both , but this project is going to be very big in near
future in terms...
Hello,
My website is doing some http posts to another server and I need to attach a certificate.
I am using this code to open the certificate store and getting the certificate I need:
X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly);
X509CertificateCollection certCollection = sto...
EDIT: If you can't be bothered to read this mammoth question, I've put a summary at the bottom.
I'm currently working on a sort of "framework" for a text adventure I am going to make in C#, as a coding excercise. In this framework, possible actions are defined by an "Interaction" class.
The potential "Actionable" objects are Inventory ...
I want to create a report that can be printed, exported as PDF or Word document.
All of the reporting frameworks I've seen so far, insist on creating a connection to database directly which is absurd.
My data comes from WCF service inform of an object.
Following is the structure of object.
ReportData
{
public UserInformation Basic...
I have the following piece of code that works well in windows server 2003. It writes to the Application Event Log in EventViwer. The same code doesnt work in Windows 2008 The aplication crashes.Request to help on how to write to event log in Windows Server 2008.
if (!EventLog.SourceExists("MyServiceLog"))
{
E...