Dynamic LINQ Queries.
Is it possible to create Linq Queries at runtime. Using an xml rule which can be translated to a Linq Query. ...
Is it possible to create Linq Queries at runtime. Using an xml rule which can be translated to a Linq Query. ...
I have an assembly that provides the class structure for a custom config section. Is there a way to wire up the config section to point to the assembly in a different directory or does the assembly have to be in the same directory as the consuming application or the GAC? If it CAN be in a different directory, how/where would I specify ...
I have the following XAML: <TreeView> <TreeViewItem ItemsSource={Binding} Header="TopMost" IsExpanded="True"> <TreeViewItem.ItemTemplate> <DataTemplate> <TreeViewItem> <TreeViewItem.Header> <TextBlock Text="{Binding SubTopic}"/> <TreeViewItem.Header> ...
I have the following method which prints lines to the console. public void MyMethod() { try { Console.WriteLine("Hello!"); Console.WriteLine("My name is MyMethod"); } finally { Console.WriteLine("Bye."); } } I have a few of these methods and they all do the same thing (i.e. try { "Hello"; Someth...
I was wondering if there is any implementation of a windows service that can call custom .net code that can be scheduled to run on specific intervals? or i should i implement my own (which i am currently doing) but i think its better not to reinvinte the wheel :) I don’t want to use windows scheduler. Thanks ...
I'm really trying to get to grips with this jquery. What i want to do is load a jquery dialog but before it loads i need to do some server side processing and bind a datalist inside the dialog. I have know idea how to do this? ...
Hello: I know I can run NtBackup commands from command line with parameters but, Do you know any library for .net to control Tape devices (include autoloaders)? There is an api for this? I couldn't find anything with a quick googling. Thanks in advances. ...
It's a small application, named Simon Basic Edition, and it is in the Apple Apps Store top 100 in Games > Kids. The first version is pretty basic, but I made a bunch of improvements in 1.1. which was submitted a week ago to iTunes Connect. Based on the same source, I have written another Simon Cards Edition which is also waiting for th...
It seems to me that most of what can be accomplished with HttpWebRequest/Response can also be accomplished with the WebClient class. I read somewhere that WebClient is a high-level wrapper for WebRequest/Response. So far, I can't see anything that can be accomplished with HttpWebRequest/Response that can not be accomplished with WebClien...
I am using DSOFile.OleDocumentPropertiesClass for getting the page count for office documents without automation. This works fine for docx and pptx files but returns always 0 for xlsx files. DSOFile.OleDocumentPropertiesClass oleDocument = new DSOFile.OleDocumentPropertiesClass(); oleDocument.Open(documentFilePath, true, DSOFile.dsoFile...
I am using some of the testing libraries from Sharp Architecture which make use of NUnit 2.5.0 while the rest of my project uses NUnit 2.5.1 so I placed an assembly redirect in my test project app config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <runtime> <assemblyBinding> <dependentAssembly> ...
I heard about the new entity framework for .net, and decided to modify my code to use this framework, but when I try to add and delete records from the table, an Exception is thrown. I am NEW to this framework, so I can't figure out how to fix this or what is causing the exception. Here is my Code(c#): try { string key = Request.Que...
When a compile fails in VB.NET in Visual Studio 2008, an Error List pops up at the bottom of the screen. To jump to an error, I double click on an error in the error list. Is there a shortcut to automatically jump to the next error in the list? It gets a little bit tedious at times having to reach down and double click a list that I lik...
From what I understand, in standard C++ whenever you use the new operator you must also use the delete operator at some point to prevent memory leaks. This is because there is no garbage collection in C++. In .NET garbage collection is automatic so there is no need to worry about memory management. Is my understanding correct? Thanks...
Hi, I need to implement own ExpressionBuilder. I know how to implement GetCodeExpression() so I'm able to do in markup: <%$ OwnBuilder: MyMethod(param) %> But now I need to implement also the EvaluateExpression to return the result of my own method (to do something like <%$ OwnBuilder: param %>. How should the EvaluateExpression me...
I have a Grid inside a Canvas defined like this: <Canvas x:Name="outerCanvas"> <Grid Grid.Row="1" Name="cGrid" ShowGridLines="True" Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type Canvas}}}" Height="{Binding Path=ActualHeight, RelativeSource={RelativeSource AncestorType={x:Type Canvas}}}"> ...
Hi I am wondering how do I set a timeout for a user if they don't do any requests after say 10mins there session is killed and they are logged out. I have in my webconfig this <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" protection="All" timeout="20160" pat...
I have a pretty simple question which perhaps someone familiar with Server/Client design & the Asynchronous I/O paradigm of .NET could answer quickly... I'm writing a server-side application which is designed to run on relatively non-sophisticated hardware (read: not-so-modern, average office desktop PCs), but accommodate a reasonably l...
Hi, How would you guys go about creating a "real-time" search engine on .Net platform. Near real-time search of the web is so popular nowadays and I was hoping you guys would help me brainstorm some ideas. I might try to make some prototype eventually, but mostly it is just a "mental training". The requirements are: .NET platform, I...
I have changed my locale to English/Great Britain (en-GB) as described here. When running my C# .NET application, I was expecting that Thread.CurrentThread.CurrentUICulture and Thread.CurrentThread.CurrentCulture would reflect this en-GB setting. However, I'm still getting en-US. Is there something that I'm missing? ...