In my application, I've got a few different types of entities that I have a requirement to do field-level change tracking on. I've googled for this and only can come up with examples on doing simple "Date Inserted" and "Date Updated" audit tracking where you just modify fields on the entity being persisted already. My requirements are mo...
Here is what i want to do, and i know it is possible with perl, php, python and java, but i am working with c#
how can i do the following:
public void amethod(string functionName)
{
AVeryLargeWebServiceWithLotsOfMethodsToCall.getFunctionName();
}
I want to pass the functionName to the method and I want it to be executed as above....
I have two different collections:
List<int>
IEnumerable<IDataRecord>
The first contains a list of primary keys. The second contains data records. What I would like to do is determine which primary keys in the first collection do not exist in the second based on a given column name and return them as a new collection.
For example, if ...
Hello,
I am not sure about how to do it, and what to search for...
I want a simple executable which "raises an event". I know, this sound crazy and is most likely described with the wrong terms. Lets go back a few steps and describe the scenario:
I just bought a nice Wacom Pen + Touch. I also have a Logitech MX Laser Mouse with some f...
In the following example, & and Δ are OK but Δ is not (the latter two are both ). The compiler issues a warning similar to:
warning CS1570: XML comment on 'XXX.DocumentedMethod()' has badly formed XML -- 'Reference to undefined entity 'Delta'.'
/// <summary>
/// & Δ Δ
/// </summary>
publ...
I'm a .NET C# developer looking to do some hardware interfacing/programming. I just want something super simple to mess around with. I have done one of those basic stamp projects, but I want something with less electrical work. A self-contained piece of hardware would be fine.
I'm not really looking to do embedded programming... but...
I'm trying to include two tables off of one base table, and provide a "where" statement on the second table, but I'm getting a very confusing error (below). Any thoughts on the issue/solution?
ObjectQuery<STATE> productQuery =
LeadsContext.STATE.Include("REGION")
.Where("it.REGION.BRAND.BRAND_ID = @brand", new ObjectParameter...
I need to import PDF documents into Microsoft OneNote, which means converting the PDF file to an image. Is there a descent free library I can use from .NET to convert the PDF file to a BMP/PNG/JPEG file? Maybe an open source project?
...
Simple question, hope the answer won't be: "You cant" :-)
How (in code) can I subscribe to a "global" stylus down event. Windows 7 obviously does it in some way, as the little tablet icon appears as soon as I use the stylus (wacomm pen and touch, but this seems irrelevant).
I want to create a simple drawing app which runs silently in t...
All,
I have finished the GUI design phase... Now I've started to add meaningful names to all the controls in my application. Visual Studio is driving me nuts auto generating the events each time I click on the control to change its name (ok so it only happens when I mess up and double click... but still annoying).
Is there a way to te...
I have the following linq query:
var files = (from d in new DirectoryInfo(@"c:\program files").GetDirectories()
where d.GetFiles().Count() > 10
where d.GetFiles().Count() < 100
select d
);
However, as you can see above, I am calling d.GetFiles().C...
Possible Duplicate:
Parsing formatted string.
How can I use a String.Format format and transform its output to its inputs?
For example:
string formatString = "My name is {0}. I have {1} cow(s).";
string s = String.Format(formatString, "strager", 2);
// Call the magic method...
ICollection<string> parts = String.ReverseForma...
If I have adobe reader installed, is it possible to programmatically print the document to a specific printer without having adobe reader or the printer dialog display (no user intervention)? Any code snippets or sugestions are helpful. I can use any version of the .net framework to accomplish this
...
Hi,
I've WebService written in Java that has method
@WebMethod
public void createUser(Long id, String name)
{
}
Now I want to use this method in .NET client. I think I should be able to use this method with nullable long but I can't. Is there any annotation or maybe some other way to force .NET use nullable types?
I think that ...
I was always a big fan of HyperTalk back in the days of Stacks in HyperCard. Are there any HyperTalk-like languages available for use with Visual Studio and the CLR? The benefits of using natural language syntax (e.g. Get the third line of text in the textbox named Comments) and strong-typing would be magnificant. The real goal is to ...
I need to build a blotter using csharp and WPF. Basically, like an excel sheet but would have the capability of customizing backgrounds of each cell or setting the value of each cell. But not sure where to start.
If anybody build blotters in csharp or WPF, a few pointers on where to get started would be great. If you can suggest some go...
Is there a quick and dirty way to dump the contents of a System.Data.DataTable to a text file or some other 'thing' for debugging purposes?
...
Hi
In a book I been reading they use a capital letter for public methods and properties. I know there are some other conventions like you put "_" in front of private variables. For me I don't like that way and like this way better but just wondering about stuff in the method.
So
public void MyMethod()
{
}
public string MyProperty {g...
I'm writing a plugin user control for an in-house screen management system. My BO layer is built on CSLA, and I'm using CSLA'a ObjectFactory to invoke my data layer. A further bit of complexity is that I'm using the CslaObjectFactoryLoader app setting to have two sets of factory loaders: one for my test data layer and another for my li...
In a CodingHorror blog post a commenter made the observation that it is more difficult to obscure sensitive configuration information (e.g. SQL Server connection strings) in a program than it used to be, because the obscuring algorithm can be disassembled quite easily with Reflector.
Another commenter suggested that encrypted appSetti...