c#-3.0
How to pass dynamically-generated search criteria to LINQ
I have some trouble with LINQ. In my program I generate a SQL search query like select * from emp \"where empId=1 and empname=\'abc\'\"[详细]
2023-03-25 04:11 分类:问答How to detect differentiate external wm_close vs internally triggered by form.close()
This is a C# app that sits in the tray as a notifyicon and does its stuff until someone right clicks it and selects close (menu option) or it gets a wm_close from an external app or by the operating s[详细]
2023-03-24 19:50 分类:问答handle StatusCode==302 when using HttpWebrequest - c#
I have a windows app that I am trying to build to simulate an upload to a web app. The project is in C# 3.0.[详细]
2023-03-24 12:18 分类:问答extracting a substring from a huge string
I have a huge string. I need to extract a substring from that that huge string. The conditions are the string starts with either \"TECHNICAL\" or \"JUSTIFY\" and ends with a number, any number from 1[详细]
2023-03-24 12:04 分类:问答Specific queries in Repository
I\'ve been doing a lot of reading about repository pattern (Linq2SQL or EF). I\'ve seen some repositories with some specific queries, such as FindUserByName where I would开发者_如何学Python pass a whe[详细]
2023-03-24 05:31 分类:问答Given Year, Month,Day and the Week number, is it possible to get the Date in C#? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Calculate date from week number[详细]
2023-03-23 17:50 分类:问答Parts of BindingList to string array
I\'m am using the BindingList to populate some controls. On part of a form I need to use some of the data stored within the BindingList to create and array.Say I have BindingList<CEmployee> and[详细]
2023-03-23 12:06 分类:问答How remove array of arraylist using c#?
How to remove the array from arraylist class Program { static void Main(string[] args) { ArrayList[] arr = new ArrayList[3000];[详细]
2023-03-23 11:30 分类:问答unregister an .ocx in 'onbeforeinstall' event of Installer class then try to register it on install but couldnt done
Hi , I tried to unregister and delete an .ocx & a .dll from the System32(XP 32 bit os)/SysWow64(64bit OS) of the machine 开发者_JS百科using C# code. I had written the Unregister & Delete code[详细]
2023-03-23 09:14 分类:问答Is there a concise way to decorate an anonymous type?
Suppose we have an instance of an anonymous type: var b = new { Length = 5 , Width = 6 // 40 more properties[详细]
2023-03-22 22:54 分类:问答