For my application, I need to serialize data to file using XML, so I read Introducing XML Serialization on MSDN. One thing that concerns me is under the Security Considerations for XmlSerializer Applications section it reads:
The XmlSerializer creates C# (.cs)
files and compiles them into .dll
files in the directory named by th...
I am currently programming in C++ and C#. Using native C++ for the numerical computing part.
Originally I intended to use C++/CLI to make a wrapper to the native C++ classes, but I found it would result in a 2 to 4 times slowdown.
So I decided to compile my native C++ to a DLL and call in .NET/C# via P/Invoke. I will do data preproces...
Possible Duplicate:
Properties vs Methods
Is there any rule or general best practice as to when to use a property vs a method? Technically any parameterless method can be made in a property and any property can be made a method, but sometimes when to decide when to use one of the other can be blurred.
I was hoping to get some r...
Which sorting algorithm is used in .NET's Array Sort method ? (Array.Sort( ))
...
Hello everyone,
I am using SharePiont Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I am developing using VSTS 2008 + C# + .Net 3.5. I am using left navigation area (in SharePoint terms, it is also called current navigation area), and each item in the left navigation area maps to ...
Hello everyone,
I am using SharePiont Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I am developing using VSTS 2008 + C# + .Net 3.5. I want to know how to add a WebPart to all pages of a SharePoint Site? Any reference samples?
I want to use this WebPart to display some common inf...
Just playing around with our Less HttpHandler for CSS preprocessing using Visual Studio 2010 and ASP.NETMVC 2 and I am unable to serve the .Less file type how I'd like to.
I have added a handler section to the web.config which is all that was previously required with VS 2008 when using Cassini:
<httpHandlers>
<add type="dotless.Core....
There is a following mark-up code:
ASPX Page
<asp:Repeater ID="GeneralRepeater" runat="server"
OnItemDataBound="GeneralRepeater_OnItemDataBound">
<ItemTemplate>
<tr>
<td>
Place:
<asp:DropDownList ID="GeneralDDL" DataTextField="Text"
DataValueField="Arena" runat="server" />
</td>
...
Consider this about the up-coming Iron Python implementation.
In theory it would allow monkey patching right? Good or bad, it matters not. Given someone else's non-testable code (at least easily) the dynamic keyword would allow monkey patching would it not? This has great potential for C# and VB if I'm reading it right.
What are the th...
Hello
Is there any virable that gets the time of compilation in the .net environment ?
I am looking for something like __DATE__ in c++ , I need to put in my about window the time of code compilation .
Thanks
...
I am doing a project in C#.Net. I wanted to read frames of AVI video, edit them, and then write them in a new AVI file (something like a transform filter)
I know a process in which I can create my own direct show transform filter, but that would be in C++ and I wanted to avoid it.
Is there anyway to accomplish this in .NET?
...
Hi,
Has anyone used the validation application block from enterprise library? Any success?
Anyways, my question is with regards to validating a numeric unique identifier. Lets say I have a Product class, with a ProductId property representing the unique identifier of the product. It is numeric. This identifier cannot be less than 1...
I have articles on my website which I would like to get corrected and translated automatically. But I need to get the content, without having the HTML tags around.
The idea is to have a regex that could retrieve all the content between the tags (and, if possible, also the content found in tags fields like <img alt='Little house'>). The ...
I need to build search conditions to be used with WHERE clause. This search condition is then passed to a different application to be executed as a part of SQL query. Because there search conditions can be quite complex (including sub-queries) I don't believe receiving application can intelligently parse them to prevent SQL injection att...
Does .NET 4 Parallel Extensions include an implementation of a lock-free Producer/Consumer queue? Is there any class or interface to implement which could help me to implement this pattern correctly?
Thanks!
...
I'm writing a program in C# that needs to insert data in multiple tables. The first insert returns a last insert rowid, which is in turn used to perform an insert on the other tables. In pseudo code:
INSERT INTO TableFoo (Col2, Col3, Col4, etc.) VALUES (@Bla2, @bla3, @bla4);
Immediately after this insert I get the last insert id by:
...
I'm working on a chat client using the .NET Framework 3.5 and WPF. I use a TabControl to handle multiple chat windows. Inside each tab, I use a FlowDocumentScrollViewer to display the chat log. When content is added to the chat log, I call ScrollToBottom() on the ScrollViewer (unless the user has moved the scroll bar away from the bot...
Is there any way to restart a windows service from the same service , as Application.Restart() in Windows forms, I don't want to launch another process from the service to restart the service.
...
I want to write a collection of methods that can be used by all languages. Java, .net, php, javascript etc.
I've thought of using wcf or web services... what are my other options?
...
Could you tell me what .NET framework installed by default on Windows XP system?
Because I wanted to write a C# application that does not require anything else to be installed.
If none is there any way not to force users to download .net framework (for example 3.5) but install it?
...