What is the painless/maintainable way of using MSBuild as your build runner ? (Forgive the length of this post)
I was just trying my hand at TeamCity (which I must say is awesome w.r.t. learning curve and out of the box functionality). I got an SVN > MSBuild > NUnit > NCover combo working.
I was curious as to how moderate to large proj...
the file path may or may not exist, but I need to know if it's in the right format for it to be a valid file path?
Anyone know a quick way to do this?
...
if i compiled below codes error return foreach loop how can i solve it?
Error:Error 1 foreach statement cannot operate on variables of type 'Sortlist.MyCalısan' because 'Sortlist.MyCalısan' does not contain a public definition for 'GetEnumerator' C:\Users\yusuf.karatoprak\Desktop\ExcelToSql\TestExceltoSql\Sortlist\Program.cs 46 1...
Hi All,
I was writing a function for rounding a number to two places. And I found a bug when I was trying to round specific values. So, I ran the code:
class Program {
static void Main(string[] args) {
int limit = 100;
for (int number = 0; number <= limit; number++) {
Console.WriteLine((System.Math.Roun...
I know how to generate html documentation using Sandcastle and similar tools. But if I want to host the project on Google code, how can I easily publish the documentation straight into the Google project Wiki pages?
I can see the SVN repository has a wiki folder which I assume maps to the project Wiki pages and I guess I can make a buil...
Below codes run perfectly but i want to re generate simply
static void YeniMethodListele()
{
Calısan calisan = new Calısan(){ ID=1, Ad="yusuf", SoyAd="karatoprak"};
List<Calısan> myList = new List<Calısan>();
myList.Add(calisan);
MyCalısan myCalısan = new MyCalısan() { list = myLi...
The title pretty much explains the question. I have a user control loaded into the main window when the application is first run. What I want to do is to raise an event on parent window when a button on the user control is clicked, so how can I raise a parent event from button1_Click on the user control?
...
Hi,
when we are trying to create an instance of C# COM exe through CreateInstance in windows Vista ultimate it throws up the following error message "-2147221164". The C# com EXE was successfully registered through regasm.exe. The component works fine across in all versions of Windows Vista.
This is the error message from getlast er...
When a method is defined with an out parameter, why do I have to specify the out keyword when calling it. Its already there in the method definition, and the runtime should know that any parameter passed will be an out parameter.
It would make sense if the compiler will accept the argument with or without out keyword, with different sem...
Hello I need help with Regular Expression,
I want to match each section (number and it's text - 2 groups), the text can be multi line, each section ends when another section starts (another number) or when .END is reached or EOF.
Demo
Expression:
\(\d{1,3}\) ([\s\S]*?)(\.END|\(\d{1,3}\))
Input text:
(1) some text some text
...
Hi 2 all!
When I worked on asp.net mvc web site project, I investigated different approaches for validation. Some of them were DataAnotation validation and Validation Block. They use attributes for setting up rules for validation. Like this:
[Required]
public string Name {get;set;}
I was confused how this approach combines with SRP (...
My application compiled in .NET 4 seems to be performing really slow compared to .NET 3.5. When I did the performance analysis, I found out that the System.Math libraries in VS2010/.NET 4 have slowed down considerably.
Any explanation to this? Has anyone else come across this or am I the only one seeing this?
UPDATE:
My sample code l...
How do I test whether two collections are equal as according each pair of elements being equal according to .Equals()?
I find myself writing a little function (given below) which seems over the top. I imagine there must be a far simpler way to do this.
bool ListsEqual<T>(IList<T> lhs, IList<T> rhs) where T : IEquatable<T> {
if (lh...
Hello,
I'm wondering if it is possible to refresh all entities from data model as opposite to refresh them one by one.
Something like entities.RefreshAll();
Regards,
Daniel Skowroński
...
I'm beginning to work on a project which has some extensive XML XSLT processing to render output HTML.
Some changes need to be made to the XSLT and I need some tool that can help me modify it without having to run the solution every time. Something that can help me visualize the changes I'm making to the rendered HTML.
I've found Stylu...
I want (have) to write a Silverlight and (or) ASP.NET based webapplication with SAP in the backend (in other words, the datasource is no classical database) . The usage of Silverlight and ASP.NET is a precondition.
Is it possible to use the WCF RIA Services (and Silverlight) where the data-source are RFCs from SAP ? Makes this sense ? If...
Can any one please let me know is there any way to find a solution for the below stuffs. I need to find out the KEY and IV value from the below byte array. the byte array in .net and this has to be convert into KEY(string) and IV(string) via PHP.
private static readonly byte[] Key = {
0xda...
I have a question for which I suspect the answer is a bit complex. At this moment I am programming a DLL (class library) in C#. This DLL uses a 3rd party library and therefore deals with 3rd party objects of which I do not have the source code. Now I am planning to create another DLL, which is going to be used in a later stadium in my ap...
Hi,
I've created a custom configuration section using XSD. In order to parse the config file that follows this new schema, I load the resource (my .xsd file) with this:
public partial class MonitoringConfiguration
{
public const string ConfigXsd = "MonitoringAPI.Configuration.MonitoringConfiguration.xsd";
public con...
One of my client has asked me an application Telephone answering machine which is exactly like customer care voice application (ie) he is maintaining a college, parents of students will call to a college phone no and they will be asked to enter student roll/reg no and they can hear that student attendence percentage,mark etc....
Is it ...