I'm writing a language using Antlr and Expression trees.
I've defined a standard factory method for my Tree Parser to use when generating addition, and it works very nicely for the built in integral types, now I'm moving on to more general types.
At the moment it's incredibly naive, it simply does this (in-progress TDD code often looks...
Hi,
I have a simple table:
CREATE TABLE [dbo].[Users]([Surname] [nvarchar](50) COLLATE Latin1_General_CI_AI NULL) ON [PRIMARY]
with two rows:
Paweł
Pawel
Issuing following select statement:
SELECT *, CAST(Surname AS VARBINARY(30)) AS Expr1, CAST(N'Paweł' AS VARBINARY(30)) AS Expr1
FROM Users WHERE Surname = N'Paweł'
gives foll...
Here is what I would like to express by Razor:
<b>@parameterMapping.Title</b> (Category: @parameterMapping.Category.Title, Regexp: @parameterMapping.Regexp)
But to make it parseable I have to write it this way:
<b>@parameterMapping.Title</b> <text>(Category: </text> @parameterMapping.Category.Title <text>, Regexp:</text> @parameterMa...
I am looking for a tool to trace the dlls being loaded into a process on windows. The app i have is loading managed and unmanaged dlls, but not sure if the managed ones are loading the unmaanged ones. Process Explorer and File Explorer doesn't seem to help much. Any thoughts?? thanks!!
...
I need to know whether there is another way to include external files in web.config apart from configSource="Source".
The reason why I am asking is, I am working with UrlRewriter.net module.
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligenci...
Hi to everyone...
I am new to C# and .NET and I just started to study LINQ to SQL, I like it. But.. I found this one very annoying thing about it. Implementing lookUps is very complex because of the "ForeignKeyReferenceAlreadyHasValueException"! There is just NO simple straight-forward way of doing it! I noticed, if I delete all associa...
I need to have an anonymous pipe within the same process to allow stream based async communication between two libraries.
Everything works until I call the Stream.Read() - I get a UnauthorizedAccessException - Access to the path is denied. Any ideas?
using (var pipeServer = new AnonymousPipeServerStream(PipeDirection.Out))
using (var p...
Hello all, I am classic asp programmer that is learning .net. Here is my problem:
I have a gridview with the following columns: Pkey, Name, Address. Lets say that I want to have a hyperlink on the Pkey field to pass that value to another page. I have been able to get this to work using querystrings. I would like to use session state...
I'm trying to store a Gzip serialized object into Active Directory's "Extension Attribute", more info here. This field is a Unicode string according to it's oM syntax of 64.
What is the most efficient way to store a binary blob as Unicode? Once I get this down, the rest is a piece of cake.
...
I'm writing an application where users can create one or more "Catalogs" which are stored in a database. However, I want to allow for multiple database formats (SQL Server and SQL Lite), and I want a user to be able to have multiple catalogs opened in the application simultaneously. The location of the catalog databases will not be know...
Any ideas regarding why the WPF XAML code I have is not working. I'm trying to override the WPFToolkit charting display, and have taken their default XAML and included in my Grid.Resources section as a means of overriding. Specifically I'm wanting to remove the graph markers, but this specific question pertains to clarifying my underst...
A server offers a SOAP function call interface.
Hundreds, perhaps a few thousand, of PCs call that function.
I need to load test this using a single PC.
At the moment I just have a for loop. Is that good enough? If not how can I make the test more realistic?
I had thought of threading, but if the SOAP function call is atomic then that ...
Hello,
This must be a trivial question to some, but I haven't found any actual information about this.
I have an ASP.NET MVC web application. As I like to write reusable code, I'd like to put my Controllers into a separate library assembly and reuse them across multiple web applications.
The question is, how can I tell ASP.NET MVC tha...
The code that gets generated by Entity Framework 4--mainly the AddTo and Create methods--should I be using those directly? I'm trying to understand the Create method. The CreateDinner method (in NerdDinner) for example is this:
public static Dinner CreateDinner(global::System.Int32 dinnerID, global::System.String title, global::System...
I want to pass one array and one integer variable to a oracle stored procedure from c#.net application. I can pass both parameter as array but can't pass two different type of variable. Is there any solution where I can pass array and any other type of variable together?
...
Hi everyone!
I need to open system default browser and send to some custom URI POST data. So I have two part of code: first - opens def browser and another must send POST data to it, but does not do it.
What can you say about it?
enter code here private void button1_Click(object sender, EventArgs e)
{
string browser = s...
I have an application which lives at on \\myserv1\D (mapped to D:). When I execute D:\app\app1.exe it needs to access \\myserv1\E(mapped to E:) E:\app\app1.xml. From what I can tell XslTransform.Load() is throwing a System.ArgumentException with a message of "Invalid site". Security is of no concern, how can I give this application acces...
I've created an installer in VS2005. I've added a custom class, and I've also added some additional UI dialogs to the installer. I would like the textboxes in my added dialogs to be required fields. How can I implement that? In my searches, I've only seen actions added to the custom class that can be carried out at the end of installatio...
Hi,
There are two available solutions (that I could find) that have the ability to serialize expression trees:
MetaLinq which has some other awesome features
Expression Tree Serialization on MSDN Code Gallery which seems to be more lightweight
I have little experience with these tools, so I can't decide whichever is the better. I'm ...
I have an ActiveReports file with the NewPage property set to "After" in the Detail Section of my report. Every time I print, I get an extra page at the end of the report. How can I prevent this from happening?
The only extra page is the last page. So I'm pretty sure this is not an issue about page margins.
...