|
|
View Property Values of a Remoting Object
Hi,
My application has many remoting objects. Each object has some properties.
But I cannot watch the value of these properties using Visual Studio watch
windows. I use VS 2005 and 2008. What should I do to view the vaues of the
properties
Thanks!
|
7/2/2010 5:59:28 PM
|
0
|
=?Utf-8?B?TWFhbnU=?= <Ma...@discussions.microsoft.com>
|
Dropdown list
How do I get the id value of the selected item in the dropdown list?
|
7/2/2010 12:03:49 PM
|
1
|
"Man T" <alanpltse_NOS...@yahoo.com.au>
|
Tool for comparing two versions of a codebase???
Hello,
Are there any good tools for comparing two C# solutions?
Let's say I have several c# projects in a solution. Let's call that solution
the reference solution.
I make a copy of the reference solution. I add some code in various
projects. I change some code in
various projects. I delete some projects. I add new projects and end up with
a new solution.
Now I want to compare the reference solution with the new solution and have
a tool report to me which
changes have occured.
Are there any good tools for this?
I am also looking for a tool which will do the same thi
|
7/2/2010 11:31:03 AM
|
4
|
"Bert" <b...@invalid.com>
|
Zip Microsoft.Office.Interop.Excel.dll with my application?
Hello.
I created an application that automates Excel. It looked like that if
the dll "Microsoft.Office.Interop.Excel.dll" was not with my exe, the
application crashes on other PC's. Since my application doesn't
provide a set-up program (X-copy application), I would like to zip
that file with my application. Is that permitted? I tried to research
on my own but I couldn't find the answer. I even consult the lawyer in
our company but he was not able to give me a clear answer.
By the way, that dll came with Visual Studio 2010 (located at C:
\Program Files (x86)\Microsoft Visual Studio
|
7/2/2010 10:57:10 AM
|
2
|
Sin Jeong-hun <typing...@gmail.com>
|
C#.net click event associated with database error
I would like to know what to do to solve the problem listed below:
When I am debugging a C#.Net 2008 windows application and click on the
'next' button, I am getting the following error:
'An unexpected error has occurred. The 'Microsoft.jet.oledb.4.0'provider is
not registered on the local machine'.
I think that I may need to change some setting I have in the visual
studio.net
2008 professional edition to solve this problem prior to clicking on the
'next' button.
I am working on an workstation that is 64 bits, XP operating system. When
the click event has oc
|
7/1/2010 10:04:46 PM
|
1
|
=?Utf-8?B?YWFyb24=?= <aa...@discussions.microsoft.com>
|
Handling backspace in a RichTextBox - again!
Hello,
I'm revisiting a problem I've never solved satisfactorily. I have a
multi-line RichTextBox that receives text input from a serial port (not the
keyboard); that input frequently contains backspace characters. To handle
the backspace characters I'm currently calculating the offset of the
character to be backspaced over from the beginning of the entire text box,
selecting that character, then replacing it with no character. The "for"
loop in the code below calculates the length of everything in the text box.
While this scheme has worked correctly, it really slows the s
|
7/1/2010 7:47:11 PM
|
3
|
=?Utf-8?B?UmF5IE1pdGNoZWxs?= <RayMitch...@discussions.microsoft.com>
|
|
|
Console App Display DLL logging info
Hello
I've got a C# console app, that calls a startup function in a C# dll that I
have created. In my DLL, as I'm processing data, I want to display some
logging information, but I want to pass it back to the console app, and have
it write the text to the console as it comes from the DLL, but I'm not sure
how I should do this....
Any suggestions, example
Thanks
|
7/1/2010 4:49:48 PM
|
12
|
"Bill" <somepl...@somewhere.com>
|
Error: InterfaceDictionary ... does not implement interface member ...
I am attempting to create a custom collection class which implements
IDictionary -- with parameters --
public class MyClassCollection : IDictionary <int, MyClass>
The purpose for this effort is to learn C# programmer at a slightly
deeper level. I have a working sample that does not include parameters.
When I add the parameters
<int, MyClass> this is when I get errors.
At this time -- my collection class -- with the parameters -- WILL hold
a collection of custom class objects. Right now -- my collection class
can store my custom class objects, and I can retrieve a count of ob
|
7/1/2010 4:46:19 PM
|
1
|
Rich P <rpng...@aol.com>
|
Call stored procedure with paremeter output in c#
Hi,
I have the next stored procedure in Sql Server 2008:
CREATE PROCEDURE [dbo].[GetNumTiquet]
@IdEmpresa int,
@NumTiquet int OUTPUT
AS
BEGIN
SET NOCOUNT ON;
UPDATE ConfGen
SET @NumTiquet=NumTiquet = (SELECT MAX(NumTiquet) +1 FROM ConfGen)
WHERE Id = @IdEmpresa
END
If i execute this stored procedure with Sql Server 2008 all is ok.
But how can i call this stored procedure with c#?
Thanks
|
7/1/2010 3:39:46 PM
|
5
|
Paul <gambam...@yahoo.es>
|
MS Office interfacing ...
What are the files required to read/write office documents from within my
..Net application? I don't have MS-Office in my computer and not allowed to
install it too! and can't use any third party tool also!!
Any help would be appreciated!
Thank you
Regards
Raj
|
7/1/2010 1:08:27 PM
|
6
|
=?Utf-8?B?UmFq?= <...@discussions.microsoft.com>
|
How to collapse C# XML doc comments like in VB.NET
Anybody know how I can set environment in C# so that when you will
press "-" sign in front XML doc comment (///) it will collapse like in
VB.NET, With that i mean you will see only summary text and not only
<summary> tag.
Let me show example and results in both languages.
In VB.NET:
''' <summary>
''' Add two whole numbers
''' </summary>
''' <param name="intNr1">First number</param>
''' <param name="intNr2">Second number</param>
''' <returns></returns>
''' <remarks></remarks>
Function AddNumbers(ByVal intNr1 As Integer, ByVal intNr2 As
Integer) As Integer
|
7/1/2010 10:57:32 AM
|
3
|
Billy <abi...@yahoo.com>
|
#.NET help to video processing?
ho,
I need to count moving objects per minute in a video stream. I'm
currently using Aforge.NET. But unfortunately I could not find a way to do
this using Aforge.NET. I checked their forums/Code project examples as well
and no luck. Please help me on this.... We're stuck :( being unable to count
moved objects across the video frame.
Appreciate any help. Thanks in advance.
--
Regards,
Pasan Indeewara
http://www.pasanindeewara.blogspot.com
|
7/1/2010 9:42:09 AM
|
1
|
"Pasan Indeewara" <pasanindeew...@aim.com>
|
Storing a generic type
I have a class with a property, called Value, which contains different
types of data. That is, it might hold a Float, an Int, a String... The
property value depends on another property which defines they type.
I also have an 'OriginalValue' object. That never changes. It contains
the origibal value when the class loaded.
I was declaring the property object... and with that, I could assign
any value, and it works fine... myProperty = "Hello", myProperty = 1.1
etc etc... that all worked. I can set and get.
BUT... I can't compare...
That is, I can't say bool Modified = (Value !=
|
7/1/2010 8:38:21 AM
|
1
|
Craig Lister <cdotlis...@gmail.com>
|
Are there methods with parameters of interface type in the standard library?
Are there any methods in the standard .NET library that have
parameters of an interface type?
(Preferably, simple methods with only one parametersthat
can be called without many preparations and can be easily
understood by beginners.)
|
7/1/2010 12:23:58 AM
|
3
|
...@zedat.fu-berlin.de (Stefan Ram)
|
Works just as good without the Threadstart
Hello!
Here I have a simple example to start a Thread. I have noticed that I can
skip the Threadstart and pass the working method directly to the Thread
C-tor.
So what is the point to use ThreadStart when it works just as good without
it.
public static void MyMethod()
{
Console.WriteLine("Testing thread");
}
static void Main(string[] args)
{
Thread myThread = new Thread (MyMethod);
myThread.Start();
}
//Tony
|
6/30/2010 11:55:10 PM
|
4
|
"Tony Johansson" <johansson.anders...@telia.com>
|
the Clear method for the Queue class
Hello!
Can somebody explain what this text mean ?
When you call the Clear method for a Queue object, the capacity of the
Queue object is not changed.
//Tony
|
6/30/2010 6:57:10 PM
|
3
|
"Tony Johansson" <johansson.anders...@telia.com>
|
string format question
Hi,
I want to make a dynamically string format padding on a given string but I
get ABORT when doing it:
string aTest = string.Format("--{0,10}--", "test"); // this is
OK
string aTest2 = string.Format("--{0,-10}--", "test"); // this is
OK too
int aNum = 10;
string aTest3 = string.Format("--{0,-aNum}--", "test"); //
trying to make the padding value dynamically -> ABORT
can someone please help ?
thanks,
Yoav.
|
6/30/2010 11:27:36 AM
|
1
|
"Yoavo" <y...@cimatron.co.il>
|
Quick inheritance Q
Hi,
I have a class 'A' that has a virtual member 'm()'. Another class 'B'
inherits from A and overrides m. Yet another class 'C' inherits from B.
A <- B <- C
From C, can I call A's implementation of m(), or the member from the
immediate inheritance from B?
Thanks,
-Duncan
|
6/30/2010 10:19:58 AM
|
21
|
Duncan <...@b.com>
|
Problem with TTable
Hello
my application uses TTable here is my code where I ocreate and open TTable
//////////////////////////////////////////////////////////////////////////////////////////////////////
AnsiString nomdatabasebalance,nomtablebalance;
AnsiString nomdatabasereference,nomtablereference;
TableBalance->Active=false;
Chem1=ExtractFilePath(NomFichier);
TableBalance =new TTable(this);
TableBalance->DatabaseName=Chem1;
TableBalance->TableType=ttDefault;
TableBalance->TableName=InFichier;
TableReference= new TTable(this);
TableReference->Active=false;
AnsiStrin
|
6/30/2010 7:45:12 AM
|
0
|
"Patrick Artaud" <patrickart...@aidedecision.com>
|
Use of Assembly Attributes
We have been trying to mimic a sort of "plug-in" design with our
app. We are loading assemblies which are in the app's assembly
directory and then iterating all the Types in each Assembly to find
ones which match the plug-in loaders designated type.
I was thinking of perhaps trying to use Assembly Attributes to mark
the plugin Assembly(ies) so that we don't bother iterating the types
from other assemblies which we know wouldn't contain the "plugin".
It seems like there is a Product Info Assembly Attribute, that maybe
could be used for this purpose.
I'm not totally sure that thi
|
6/29/2010 8:16:36 PM
|
3
|
Shalom Shachne <shalomshac...@gmail.com>
|
how to iterate SimpleDictionary that implements IDictionary?
I am practicing creating a custom SimpleDictionary collection object
that implements IDictionary<int, MyClass> as follows below. I generated
the default members to this custom collection object from the context
menu of right-clicking on IDictionary<int, MyClass>. So far, I can add
elements to my custom collection object and I can retrieve a count of
elements, but I can't interate my collection object. I don't know what
to return here:
public IEnumerator<KeyValuePair<int, MyClass>> GetEnumerator()
{
return -- what do I return here?
}
and here is the code I have. Note: I ha
|
6/29/2010 7:27:25 PM
|
3
|
Rich P <rpng...@aol.com>
|
delegate vs condition check
hello everyone,
today i tested the speed of a delegate relaying to a function against
the speed of an an if, that checks the condition of a boolean value,
relaying to a function (the code is attached at the end of this post).
in my test it turned out, the delegate was twice as fast as checking
the boolean.
this lead me to the conclusion, that whenever object behavior depends
on values, known from time of construction, it is faster to compose an
object (compose of delegates and/or other objects) at construction
time, rather than checking condition(s) every time an object is used.
|
6/29/2010 3:05:14 PM
|
1
|
Art <...@gmx.info>
|
Painting datagrid view
I currently have a datagrid view that's bound to a table. I have the
AllowUserToAddRows is set to false so there is no extra row on the
bottom of the dgv. I also have cell painting logic that changes the
color of the row based on the text in the cell... however, my code
will not work for the last row unless I set AllowUserToAddRows to true
- which I don't want to.
Does anyone have a work-around for this?
TIA
|
6/29/2010 2:35:12 PM
|
0
|
derianc <deri...@gmail.com>
|
vs2005 c# app on windows 7/x64 fatal ?
Hi all
I have an app running ok on W7 32 bit but on an W7/x64 it crashes immediate
(no exeption thrown) .
the program has stopped, windows is searching for a solution......
Runs ok in XP mode.
Should i install Net 2 SP1 x64 ?
I have currently no VS2005 on this machine.
any clues or hints ?
Johan
|
6/29/2010 2:18:19 PM
|
4
|
"Sagaert Johan" <REMOVEsagaer...@hotmail.com>
|
Formsauthentication timeout and 2 login pages
Hi,
My client wants 2 separate login pages for an ASP.Net app, one for
regular users, one for support staff. I am using the standard
FormAuthentication component for authentication. Is it possible to
redirect a regular user to one login page after a timeout, and also to
redirect an admin user to a different page after a timeout? The
loginUrl attribute of <forms> in web.config is read-only, and cannot
be edited at runtime.
In other words, can I do this:
Regular User -> Timeout -> Login.aspx
Support User ->Timeout -> SupportLogin.aspx
Thanks,
C.
|
6/29/2010 2:10:35 PM
|
0
|
"C." <hardi...@hotmail.com>
|
After merging 2 ContextMenuStrip how to call Opening ?
Hello All
I ve got 2 ContextMenuStrip
menu1 :
_A
_B
menu2 :
_C
_D
I set Opening on both menu
menu1.Opening += new CancelEventHandler(MyOpening1);
menu2.Opening += new CancelEventHandler(MyOpening2);
now I want to merge these 2 menus into one :
ContextMenuStrip newMenu= new ContextMenuStrip();
ToolStripManager.Merge(menu1, newMenu);
ToolStripManager.Merge(menu2, newMenu);
newMenu.Opening += new CancelEventHandler(myNewOpening);
In fact I m stuck here :
when the newMenu is about to be displayed, OnOpening is fired but how
can I call the Opening of the o
|
6/29/2010 1:46:59 PM
|
1
|
fred06250 <fred06...@gmail.com>
|
Threading
Are there any dangers with a line of code such as:
new System.Threading.Thread(UpdateContacts).Start();
On completion, does the thread get taken care of by ... what?
|
6/29/2010 7:48:27 AM
|
13
|
=?Utf-8?B?QUEyZTcyRQ==?= <AA2e...@discussions.microsoft.com>
|
System.IO.TextReader+SyncTextReader
The statement
System.Console.WriteLine( System.Console.In.GetType() );
prints
System.IO.TextReader+SyncTextReader
under Microsoft� Visual C# 2010 Express.
What a kind of type is this? (I mean, what does the �+� mean?)
Where would one look up the documentation of this type?
One also finds the notation/spelling
�System.IO.TextReader.SyncTextReader�,
�System.IO.TextReader SyncTextReader�, and
�System.IO.TextReader/SyncTextReader� in Google.
|
6/29/2010 4:44:47 AM
|
1
|
...@zedat.fu-berlin.de (Stefan Ram)
|
VWD 2010 Express calls Win32 DLL
I am looking into using Visual WebDeveloper 2010 Express edition to develope
a simple web application.
- a button on web page
- click on it
- calls a Win32 DLL function by passing a string type parameter as output
parameter
- this output parameter will be a string, in format of yyyymmdd, eg.
20101231
- print out this output parameter on a label
Any sample source code to help me get started?
|
6/29/2010 3:40:40 AM
|
4
|
"Alan T" <alan_NO_SPAM_pl...@yahoo.com.au>
|
How to implement IDictionary with <int, MyClass> members for custom Collection Object?
I found
public class SimpleDictionary : IDictionary
for creating a custom collection object at this site:
http://msdn.microsoft.com/en-us/library/system.collections.idictionary.a
spx
The following is a simple class called MyClass (followed by
SimpleDictionary : IDictionary). I can add MyClass objects to
SimpleDictionary as is. But if I add the following members to
IDictionary <int, MyClass> -- then my test app complains that I am not
implementing the members. How do I emplement these members <int,
MyClass> ?
public class MyClass
{
public int EmpID;
public stri
|
6/28/2010 6:20:29 PM
|
1
|
Rich P <rpng...@aol.com>
|
Task manager in C#
How to create task manager which shows process description and CPU columns
like
in windows Task Manager?
I looked into Process class but it does not have Task Maanger CPU and
process description
column properties.
Also it returns lot of duplicate process names as "svchost" .
How to explore from C# code what is really running instead of svchost
generic name ?
Andrus.
|
6/28/2010 4:13:14 PM
|
1
|
"Andrus" <kobrule...@hot.ee>
|
.Net application architecture suggestion...
Hi,
We are in the conceptual phase to create a relatively medium size enterprise
business product application using Silver light 4.0, Entity Framework and
WCF.
1. Is it adivceable to use Silverlight 4.0 for this enterprise business
application development or should we go in for MVC.NET / ASP.NET?
2. We have planned to use REST based WCF service. How complex would it be to
write the information back to the REST WCF service?
I appreciate and welcome your advice / suggestion. If you need any further
details do let me know, i will be happy to share.
Thanks in advance.
|
6/28/2010 12:29:37 PM
|
2
|
=?Utf-8?B?UmFq?= <...@discussions.microsoft.com>
|
MenuStrip Merge
I am seeking the manner in which you merge menus between MDI forms and Child
Forms.
Given the Main Menu (MDI Form)
File
--New Project
--Open Project
--_
--Create Item
--_
--Exit
And given the Child Menu
File
--Save Item
--Close Item
I want the child menu to merge into the main menu.
Here's what I've don so far
Main Menu:
File (MergeAction = Append, MergeIndex = 100)
--New Project (MergeAction = Insert, MergeIndex = 102)
--Open Project (MergeAction = Insert, MergeIndex = 103)
--_ (MergeAction = Insert, MergeIndex = 110)
--Create Item (MergeAction = Insert, Me
|
6/27/2010 8:47:36 PM
|
0
|
"amdrit" <amd...@hotmail.com>
|
C# projects
C# project questions:
1. In a C#.net solution that was maintained by a team of programmers, is
there a way to tell how to get the build to locate no errors when it is
compiled. Basically I would like to know the order of items to try to get a
large solution to compile.
**I am asking that question since the programmers that worked on this large
application have moved on to other programming teams in the company. I am
told that this C#.net 2008 application did compile clean 6 months ago and no
changes have been made to the application.
Basically are there some suggestions you
|
6/27/2010 6:01:56 PM
|
2
|
=?Utf-8?B?YWFyb24=?= <aa...@discussions.microsoft.com>
|
C# namespaces
In a C#.net 2008 solution that I need to start working on for the first time,
the same namespace name is used in lots of different projects in the same
solution. Do you have any idea why this would be setup like this? Would this
be setup to overload(override) the namespace. Basically the name 'projectall'
namespace is used in lots of proejcts in the same solution.
|
6/27/2010 6:02:16 PM
|
3
|
=?Utf-8?B?V2VuZHkgRWxpemFiZXRo?= <WendyElizab...@discussions.microsoft.com>
|
Chossing port for server lsitening
I’m writing a server that listen for client connections.
I chose the 2902 port. But today I received a SocketException as follow:
Message: Only one usage of each socket address (protocol/network
address/port) is normally permitted
Method: Socket.DoBind
I examined the netstat output and found that some other process has an
established connection on this same port.
My question is:
What is the range of ports numbers that I can use for my server to listen
on, and making sure the Windows OS will not use them?
-------
Thanks
Sharon
|
6/27/2010 7:02:55 AM
|
1
|
=?Utf-8?B?U2hhcm9u?= <Shar...@newsgroups.nospam>
|
Copy entire directory
Hello,
How can I copy an entire directory with all its sub folders and files
to another location?
Thanks,
Miguel
|
6/27/2010 12:58:00 AM
|
2
|
shapper <mdmo...@gmail.com>
|
C#.net custom control
I and another girl developer at worI want to to know how to do the following
in a C#.NET 3.5 non-web application:
1. I have a delgate in one project and I want to have the delegate be
executed from a click event in another project. How do I setup this type of a
project refernce?
(Note: This is existing code that is not working. Some other programmer
wrote it.)
2. I have setup a control that I want to share with several projects within
one solution and a copy of different solutions. Thus can you tell me:
a. How to compile(build) the custom contol to generate a DLL?
b. Once I h
|
6/27/2010 12:09:52 AM
|
6
|
=?Utf-8?B?bWlkbmlnaHQ=?= <midni...@discussions.microsoft.com>
|
Drag-and-drop between two ListView controls?
Hi all,
I got a form with a ListView control in detail mode. The program can be
opened in several instances. I want to be able to move or copy (move by
default, copy if CTRL is pressed) one or more items between different
instances of the program, using drag-and-drop. Sounds straightforward to
me, but I can't find any useful examples out there. Any help would be
much appreciated!
Gustaf
|
6/26/2010 11:52:02 AM
|
0
|
Gustaf <gust...@algonet.se>
|
Climate Change Effect on Mount Everest
Dear all,
Dipen00977.flixya.com
Is only the URL where you can find the Article, photograph and Video
on climate change inducing disaster? Don=92t miss to watch.
Latest Video and discussion topic: climate change effect in Mount
Everest
|
6/26/2010 10:54:16 AM
|
0
|
Dipendra Adhikari <zliofli...@gmail.com>
|
Precreated objects
In Java, there are some names that refer to objects that
are already created when a program starts. For example,
java.lang.System.out
refers to an object at and after program startup, this object
does not have to be created by a program, but already exists
when the main method is being started.
Are there any such identifiers in C# (that refer to objects
already existing at program startup)?
|
6/26/2010 8:41:16 AM
|
3
|
...@zedat.fu-berlin.de (Stefan Ram)
|
C#.net 2008 build problem
I am asking for help on compiling a C#.net 2008 application since I have not
been able to obtain a successful build with no errors yet.
This application that we need to support has no documentation and the
programmer(s) who wrote the application are not with the company any longer.
This C#.net 2008 solution has lots of project files in it.
You can compile this application in the following modes:
a.debug, b. debug-test, c.debug-development, d. debug-production,
e. release, and there is a class manager configuration file.
I am getting errors like:
1. Error 33 The type or name
|
6/26/2010 2:46:20 AM
|
11
|
=?Utf-8?B?V2VuZHkgRWxpemFiZXRo?= <WendyElizab...@discussions.microsoft.com>
|
How to find other attribute value corresponding searced attribute
Header("Item1")
returns
<MenuItem Content="Open file" Name="Item1" />
How to change this so it returns Content attribute value "Open file"
corresponding to Name attribute value ?
public static string Header(string entity) {
return Menu.Descendants("MenuItem").Where(m =>
(string)m.Attribute("Name") == entity).Single().ToString();
}
Menu type is XElement and it contains:
<Menu>
<MenuItem Content="File">
<Items>
<MenuItem Content="FilemenuSubMenu1">
<Items>
<MenuItem Content="Open file" Name="Item1" />
<MenuItem Conte
|
6/25/2010 8:51:07 PM
|
1
|
"Andrus" <kobrule...@hot.ee>
|
How to get task manager CPU and default memory column values
I need to return CPU and memory columns for each process in server from web
service like task manager shows by default.
I tried code below but s.TotalProcessorTime throws Win32exception with stack
below.
How to get CPU and real memory size from server using web service ?
Andrus.
static void Processes(StringBuilder sb)
{
List<Process> processes = new List<Process>();
foreach (Process process in Process.GetProcesses())
processes.Add(process);
processes.Sort((a, b) =>
{
return Math.S
|
6/25/2010 12:37:34 PM
|
0
|
"Andrus" <kobrule...@hot.ee>
|
WPF Message queue
Hi all,
First of all: sorry for my English.
I'm trying to implement background data processing in WPF. For example by
pushing button "A" i start some function "B" that works indefinite amount of
time. That's why i show continuous progress bar till the end of function. I'm
using Backgroundworker for this. But during this long operation button "A"
keeps to be pressed. I don't like that behaviour. I'd like to enque my method
"B" to be run after button's event OnClick finished. Thus button will look
unpressed and my long operation will do it's job.
So the common question is: is
|
6/25/2010 11:40:57 AM
|
1
|
=?Utf-8?B?dmtvcm5pZW5rbw==?= <vkornie...@discussions.microsoft.com>
|
localization in csharp windows application
Hi,
I need to display and insert, english as well as chinese characters in c
sharp windows application.please help me. am using VS2005.
|
6/25/2010 9:31:39 AM
|
1
|
=?Utf-8?B?c2F0eWE=?= <sa...@discussions.microsoft.com>
|
IDictionary<int, Employee>
Hello!
Assume I have this class declaration
public class EmployeeCollection : IDictionary <int, Employee>
{
// Implementation code
}
I assume that I can't use this code because I must add an int as the first
parameter and an Employee as the second parameter. In this example I add the
object KeyValuePair which should not be valid because
we have this declaration IDictionary <int, Employee>
Employee e1, e2;
e1 = new Employee (1001, "Andy Reid", "Manager");
e2 = new Employee (1002, "Kara Lang", "Sales Engineer");
EmployeeCollection eData = new EmployeeCollection();
eData.Add
|
6/24/2010 11:51:41 PM
|
2
|
"Tony Johansson" <johansson.anders...@telia.com>
|
Events and Dispose
Anyone put this straight in my head...
If you dispose an object that without explicitly removing the event
subscription
what happens? Does the event still hang there? Does it prevent the
Dispose()?
If so, what is the point of subbing to an event using an anon. method?
Timer timer = new Timer();
timer.Interval = 2000;
timer.Tick += (s,e) => {
// DO Stuff
timer.Dispose();
};
timer.Start();
mick
|
6/24/2010 9:36:38 PM
|
2
|
"mick" <coughco...@privacy.com>
|
inheriting from Enum
Hello!
Do any class inherit from Enum ?
Can you mention anyone.
//Tony
|
6/24/2010 2:35:06 PM
|
3
|
"Tony Johansson" <johansson.anders...@telia.com>
|
dynamic search and sort using linq
I need to build a form that will take in string value from dropdowns
for:
sort_colum_name,
search_column_name,
table_name
and textbox for search_text
I know this is possible using expression trees, but somehow cant form
the statements. Please help
Here's what I have so far:
private static List<T> GetSortedData<T>( string sortColumnName)
{
var type = typeof(T);
var property = type.GetProperty(sortColumnName);
var parameter = Expression.Parameter(type, "p");
var propertyAccess =
Expression.MakeMemberAcce
|
6/24/2010 11:47:40 AM
|
2
|
fiza <ezsofia....@gmail.com>
|