When adding to a list, if I add the property of a class instance, is it set to a reference of the property's value or a reference to the property?
Example:
If I have:
class A {
public Action<Guid> SomeDelegate { get; set; }
}
And in a different class I create an instance of class A, ie:
class B {
public B() {
a ...
Say I have a class with one property
Public Class MyClass
Public Property MyItem() as Object
....
End Property
End Class
I have to pass the name of the property to a function call. (Please don't ask why it should be done this way, its a third party framework). For example
SomeFunc("MyItem")
But what I would like to do i...
Is there a ORM that would
leave my entities classes clean, withouth any attributes for properties and classes
would not be ActiveRecord pattern so it should not have entity.Save/Delete etc.
optional: able to execute stored procedures and parse the result into entityies
...
Hi,
I have got a requirement that we need to make a telephone call using ASP.NET application.
Our ASP.NET application is used in call center. Currently, they make a call to customer manually. Now, the call should go from our application by clicking the phone number link and starts recording the conversation between the agent (applicati...
Is there a way to save changes for individual tracked objects rather than all the objects in the ObjectStateManager, and I mean something like:
ObjectContext.SaveChanges(Contact)
...
Hi,
I try to follow the loading progress of big XML files (I'm not the provider of these files) in dotnet (C#, framework 3.5 SP1) : from 1 MB to 300 MB over a network file share.
I use an XmlReader for loading purpose instead of direct XmlDocument.Load method for speed up the loading process.
By the way I found nowhere on internet/doc...
What are the downsides and limitations of using Linq to Sql verses writing a more traditional data layer calling stored procs/using dynamic sql through the .NET SQL Server data provider?
The advantages are well documented but I’ve found little discussion of the real world issues people have experienced.
Please note I’m not talking abou...
I recieve the following error: The server {00024500-0000-0000-C000-000000000046} did not register with DCOM within the required timeout.
Can anyone lend some insight to the problem?
Thanks.
...
I recently developed a keen interest in the .net framework cos of my boyfriend who adores everything programming, and I want to know the best way to learn, i.e, applications or websites? c# or vb? mvc or not mvc? please help. also can you learn java while learning asp.net c#?
...
What's the quickest and easiest way to get the Min (or Max) value between two dates? Is there an equivalent to Math.Min (& Math.Max) for dates?
I want to do something like:
if (Math.Min(Date1, Date2) < MINIMUM_ALLOWED_DATE) {
//not allowed to do this
}
Obviously the above Math.Min doesn't work because they're dates.
...
In .Net (C#) server process, i want to generate image with lot of rich text (with paragraphs, font style, etc.. ). The richtext can be described using RTF or HTML.
Is there any way to convert RTF/HTML to a image ? Since it is a server process, i want to avoid windows forms controls.
...
I want to expose a .NET class to COM.
That's fairly easy:
I create an interface in where I define the members of that class that should be ComVisible
I define the DispId's of those members myself
I define that the interface should be ComVisible
I assign a Guid to that interface
I create a class which implements that interface
No big ...
I use a hidden variable (input type=hidden) to store ID information on a page. To prevent attackers, I decided to encrypt the data stored using System.Security.Cryptography.
The hidden variable is accessed in JS and executes validation logic. I will need to decrypt the data before executing the validation logic. Is there a way to decry...
Hi,
I am trying to do something which I believe is not complicated but still - the straight forward approach doesnt seem to work...
I created a user control and bound it to a datatable, then I created a new Binding and binded another object to that same combo (SelectedValue to be more exact) in the following manner:
this.cboValue.Data...
Is it possible to simulate a stopwatch with IsHighResolution = false when by default it's true?
...
I have a WinForm app(.net 3.5) that when you first select a Person it retrieves all of that persons data for there entire Plan. This can take up to 5 secs. I need to show my users(in house only) that the program is loading/working in some way. I also need to keep them at that screen until it finishes as well. Do to the design of the ...
I've got an administrative page with a listbox filled with values. A user can also change the order of the values via some jquery, and in theory we'll save that order and it will change the order of display in a listbox in some other, exotic, locale.
The jquery works fine. When the user saves I use this code to process the listbox:
i...
I've been exploring options for expanding my QuickTest Professional scripting capabilities, and came across this article this morning, so I decided to experiment a bit. The code below works fine when executed inside the QTP environment, but I could see a use for this outside of the QTP environment as well. Unfortunately, it is causing an...
In the code snippet below, I only have 1 element in the XML that has text data:
<element>like this</element>
All the other elements have attributes or nothing.
Why would my parsing below seem to indicate that ALL of my elements have "like this" as text data?
thx
StreamWriter sw = new StreamWriter(out_file_name_);
var xd = XDocumen...
Any help will be appreciated in this matter. Everything was working fine in the server and sometimes goes off but comes back. No change in settings or code. I have IIS6
The compiler failed with error code 128.
Show Detailed Compiler Output:
c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe" /t:library /utf8...