Hello there,
I have just found some misterious behaviour while working with System.Linq.Expressions.Expression and System.Reflection.MethodInfo.
The code is as follows:
static void Main(string[] args)
{
Expression<Func<double, double, double>> example = (x, y) => Math.Sin(x);
//Prints out "x, y":
Cons...
Hello, I wanna find something like linked list but non from generic namespace, is it possible ?
Thanks.
...
I'm trying to wrap my head around the Entity Framework and am having trouble understanding how one would code to an interface (or, perhaps, whether coding to the interface is possible). I'm fairly confident in C#, but mostly due to my ability to program in so many other languages, so forgive any ignorances.
Given:
public interface IInp...
I'm wondering if someone could point me out in the right direction. I need to capture e-mails as they are received and/or sent via Microsoft exchanged.
I need to capture typical information such as from, to, subject, body, date send/received, conversation id, etc.... but I also need to capture attachments if any and also if possible con...
Programatically insert values to a webpage.
for eg.
I have web page where i have created to two text box and one command button.
when i click the button. it compares two value of the textbox.
and throws a message "hello".
to accomplish this job i want to open the webpage type the values press the button bla bla..
but i want to accomp...
I have a .NET 3.5 server application that usually has about 8 clients. I'm using System.Net.Sockets for all the networking.
I've been told that if a client is running on the same box, it should use localhost:<port> or 127.0.0.1:<port> instead of the machine's ip or name for better performance. Several people at work have said that thi...
I'm in the process of designing the architecture of an application I’m planning on building and need some advice on the best way to implement a specific windows service component described below. I'll be building the service using .net 4.0 so I can take advantage of the new parallel and task APIs, I’ve also looked at using the MSMQ servi...
In the spirit of this question, I'd like to know what Gotchas you've come across in Linq. The reason I'm posting this is because I came across a brain teaser today, and I want to share it with the rest of you.
note: I've posted it as an answer
...
As I recall, WP7 supports C# but does not support any of the .Net dynamic languages (Ruby or Python). Are any other programming languages besides C# supported? Could an app be developed using Boo?
...
We use ODP.NET to perform queries on Oracle databases, and normally it works fine. There is a particular database, and a particular view in that database, though, that we just can't complete a query on from .NET. For example:
SELECT some_varchar_field FROM the_view WHERE ROWNUM < 5;
If I execute this query from within Oracle SQL devel...
I am involved in testing an ASP.NET MVC site that uses a WF service hosted as a separate site on the same IIS server.
We currently use Log4Net to assist with diagnostics in Stage and Production, so sysadmins are regularly setting the logging levels from WARN to DEBUG and back again for brief periods in order to capture logs.
I've notic...
I'm trying to create an object in an appdomain:
var type = typeof (CompiledTemplate);
var obj = (CompiledTemplate) domain.CreateInstanceAndUnwrap (
type.Assembly.FullName, type.FullName);
However, I always get the following error:
Unable to cast transparent proxy to type 'Mono.TextTemplating.CompiledTemplate'.
I'm running on .NE...
I want to mock this interface using Moq
IInterfaceToBeMocked {
IEnumerable<Dude> SearchDudeByFilter(Expression<Func<Dude,bool>> filter);
}
I was thinking of doing something like
_mock.Setup(method => method.SearchDudeByFilter( x=> x.DudeId.Equals(10) && X.Ride.Equals("Harley"))). Returns(_dudes);// _dudes is an in-memory list of dud...
What's best practice for a WPF windows application re where to store confirm data that a child window captures?
That is, say from main page you click "configure" to jump to a configuration window/dialog. Where should the config data be stored so that when finished the main screen can access it when the user clicks on a button that in...
Hi,
What's the best way (in a WPF app, C#) of implementing control behaviour that is based around the current status/mode for the window?
For example let's say the modes might be simply OFFLINE, ONLINE for example. So when OFFLINE you want the configuration entry controls to be active, however as soon as processing starts (ONLINE) ...
I have PDF file and i need dynamically put image(logo) in some place of this pdf file.
I just need to say "here is image put it to special position on pdf or something and give me output". And than i pass this output in my controller in response. That's it.
Could anybody suggest any good free library for such case.
iTextSharp?
...
Hi All,
I have a winapp which writes data into a xml(Data.xml). This xml is my data store.
The winapp will be used by atleast 10 ppl. Sometimes 2 users may simaltaneously import some data and store it into Data.xml(import usually takes 60-100secs). During this period which ever process got the first access on Data.xml must hold a lock ...
The maximum number of rows that a DataTable can store is 16,777,216
Datatable max rows - 16,777,216,
Datatable max columns - ????
Can't seem to find the max columns.
...
Is it possible to have a file/directory selection button next to a property value in the PropertyGrid? Hitting the button would launch a standard "Open File" or "Select Directory" type of dialog. In a perfect world, this could be done using an Attribute on the SelectedObject's property.
...
Is there a SDK for C++ or .NET available for SAP ERP 4.0 as I need to read and write data into it.
...