Hello
I've a datatable which has a single text column 'Title' which can have multiple values with duplicates. I can remove the duplicates using a dataview.
DataView v = new DataView(tempTable);
tempTable = v.ToTable(true, "Title");
But how can i get the number of duplicates for each distinct value without any looping?
...
Hello everybody
I know that each class should to do its own job. So i always try process my fields by only in class's methods.If another class processing on my public fields i feel that there is something wrong but is it always right thing to make define private fields ? Would be bad design or code If i let other classes to change my pu...
I would like to access type information from a referenced (it is a project reference) assembly. The hard way would be to resolve the assembly's file path using VS solution, and load the assembly from file, but I'm sure that since the referenced assembly is already resolved/loaded in the executing assembly, there must be a much easier wa...
How can i compare 2 string array with generic class? it returns tome true they are equal but not return true....
namespace genericCollections
{
class Program
{
static void Main(string[] args)
{
string[] xx = new string[] { "gfdg", "gfgfd", "fgfgfd" };
string[] yy = new string[] { "gfdg", ...
I am new to UML. I have found the signs to show different access modifiers in UML.
Like
+ is for Public
- is for Private
# is for Proctected
~ is for Internal
But in the ref text there is no sign for Protected Internal.
I guess it should be #~. Let me know if its correct or not.
...
I've been reading a bit about immutable structures such as string. Simply put, they don't change state once they've been created (so for instance asking for a substring gives you a new string).
Now, I was wondering whether the CLR "knows" that a certain type is immutable, and uses this fact to do something clever at runtime, or is immut...
I'm trying to make a .NET wrapper for an REPL (specifically Scheme, but I haven't got to where it matters). I looked for some sort of expect-style library, but I couldn't find one, so I've been using a System.Diagnostics.Process. I don't think I'm succeeding at reading and writing correctly.
Here's my code; it's in IronPython, but I h...
I am trying to find a reasonably mature/stable and freely available (preferably open-source) library for doing AOP in .NET. I've been searching around a bit and found the products below; however, most of them seem dead:
PostSharp this is the AOP solution usually recommended for .NET, however it's a commercial product and thus some use...
I'm confused about machine code and native code. What is the difference between these?
Are these the same or not please?
...
What is the easiest way to detect whether any right-to-left language is installed on the host Windows OS?
(I need this in order to know if LTR marks will be displayed as squares, or work properly on the host OS)
...
I'm looking for a good ORM for an upcoming project.
The database will have around 1000 to 1200 tables, and it will be in Both SQL Server and Oracle, which will be used depending of customers enterprise needs.
Also a few part of the project will work with WCF services.
I want a designer or something like that.
Good support of LINQ.
Accep...
Using C# & asp.net
if there is no data's in the table, gridview displaying one rows (it was empty)
I want to hide the gridview empty row.
How to do this.
...
In an Android app, I am looking for the functionality of the .NET string function [Trim('aaa')] which will trim off the text "aaa" off a string. I don't think this is natively available in Java and I haven't seen that functionality in Android Java textutil library.
Is there an easy way to have a Java app trim a set of characters from th...
I'm working an a form with a progressbar, which is meant to have certain colors (foreground and background). On my XP machine, the colors are correct. On my Windows 7 machine, the form looks all sexified (just like all the other windows 7 windows) and the color is not what I had set in the designer.
Is there some sort of style option th...
I don't know much about the CIL, except that there is metadata in assemblies that record the type information.
Would it be possible to create some reflecting tool that is able to read a C# or VB.NET assembly and change its metadata so that all class members become public?
Would it be straightforward (e.g. change one or two bytes for ea...
Hello,
I've written an application that does 2 things:
It uses WebClient to get data from an outside server.
It hosts a second application that has 2 instances. Each instance connects to the server software on the same port.
Here is the issue. When I run the server app in the VS IDE, it connects to the outside server very quickly, a...
I need a way to programatically determine if this checkbox in control panel is checked (Windows XP):
Screenshot: http://tinyurl.com/3357hhm
The checkbox is in Control Panel - Regional settings - Language - Supplemental language support - and is called "Install files for complex script and right-to-left languages".
It would be best to ...
Hello everybody!
I know how to run an external application in C# System.Diagnostics.Process.Start(executableName); but what if the application I want to run has extension that is not recognizable by Windows as extension of an executable. In my case it is application.bin.
Regards.
...
Consider the following struct to be sent over TCP to an unmanaged dll
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct FooMessage
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 42)]
public string foo;
//More fields...
}
Using the following function (credit to Cheeso):
public byte[]...
hi
I am created a post before " Object to byte not working " .
I fixed problems that users said me , but there is still problem .
Error Message : The constructor to deserialize an object of type 'WindowsFormsApplication1.Form1+Item' was not found.;
void start()
{
Item item = new Item();
item.files.Add(@"test");
byte[] b = Objec...