Hi all,
An asynchronous question:
I've been reading over the internet LOTS of articles for and against Delegate.EndInvoke() being optional. Most of those articles are 4-5 years old. Lots of dead links.
Can anyone explain, in .NET 2.0 - is EndInvoke() indeed preventing an otherwise-inevitable memory leak, and if yes can you please spec...
Having a custom control deriving from ScrollableControl and using AutoScrollMinSize to set the inner display bigger than the viewport, the horizontal scrollbar shows as expected.
However, sometimes I want the inner display smaller than the viewport but the horizontal scrollbar disappears. I know that's the expected behavior but what I w...
I build a repository class that use ISessionFactory.GetCurrentSession() to find the current session that its methods should work with and used CurrentSessionContext.Bind to bind a session within my application. Inside the NHibernate config I used thread_static as my current_session_context_class.
This worked perfectly so far. On each th...
Hello, I'm in the process of creating an application which will monitor specific registry key values for changes and write those changes to a text file.
At present I can monitor the changes and know when specific values have changed and collect the data held in those values. The problem I'm having at the moment is the return type of the...
Hi There,
Is it possible to get the comment description of a method or property using reflection. E.g When you use intellisense in Visual Studio to scroll through methods available to object there is a label which describes what the method does. How can I access this data programmatically using reflection?
your thoughts are much apprecia...
I have a Windows Service that hosts three different duplex WCF channels. Clients can connect to have updates sent to them via their callback contract. Essentially there are three pub-sub channels.
This service takes a long time to bounce when clients are connected. The call to ServiceHost.Close takes 10 seconds to return (so the serv...
Up until yesterday, I had no idea iTextSharp included a full set of barcode classes. I discovered this through a chance answer to a question here on SO. Although I'd used iTextSharp in an earlier incarnation for generating some overlay text on a template PDF, I'd never fully explored the library, nor do I even recall Barcode support bein...
Say I have an application that reads a centralized ErrorLog called LogViewer it is mirrored in a few formats (winforms, silverlight, asp.net, asp.net mvc, etc)
Project Names for the actual publish/deployment would be different for each one. Where would I best store the name LogViewer vs LogViewer WinForm (or LogViewer silverlight,etc) t...
(OK, I'll expose the depths of my ignorance here, please be gentle)
Background
I've got a method which looks (a bit) like this:
public void AddLink(Enum enumVal)
{
string identifier = m_EnumInterpreter(enumVal);
AddLink(identifier);
}
The EnumInterpreter is a Func<Enum, string> that is passed in when the parent class is cr...
Sure, there's a type of project in Visual Studio that outputs a DLL that people can use. I know that. I'm just wondering what are some of the standards that devs will expect when using my DLL file.
I'll be providing a class that searches for movies in IMDB and returns results for a dev to consume.
Not a webservice, but a local DLL file...
Possible Duplicate:
Will installing Visual Studio 2010 Beta side by side with VS2008 cause problems?
Hi,
Do you have any experience in having two different visuals(2008 and 2010) on one computer? I'm not sure if there wont be any problems with framework 4? I still want to develop some apps using 3.5 framework and vs 2008
Thanks...
I am using a Masked Editor which is great and simple to use, but I was wondering. Is there a way to bind the time to a textbox that has a masked editor and cause the AM or PM to show up?
I know if you type an A or P AM and PM will show up, but how to you get it to appear to a bound textbox of time?
<asp:TextBox ID="txttime" runat="serv...
Hello,
I need a quick text input dialog box. (MessageBox with a single Text box in it). Is there any control available or should use a form?
I just want user to enter some ID. And in other occasion I want 2 texboxes for Username & Password.
...
I have a process, let's call it Process A, that is hosting a simple WCF service exposed though a basic Http binding. If I spin up that process I can then access the service from another process, Process B, with no problems.
However, my required use case isn't so simple. What I need to do is access the Service from a DLL that is hostin...
Hi
I have a simple class I'm serializing.
[DataContract(Name = "Test", Namespace = "")]
public class Test
{
[DataMember(Order = 0, Name = "Text")]
public string Text { get; set; }
public Test() {}
}
This kicks out the following XML:
<Test>
<Text>Text here</Text>
</Test>
What I want is:
<Test>
<Text type="My...
I have a .NET assembly (.dll) that gets loaded as a COM server into an existing process. How can I get a .config file applied to it such that ConfigurationManager.GetSection will return the section out of the applied .config file?
...
Suppose I have a class with several properties that correspond to user-defined parameters, such as:
bool StepUpHedge { get; set; }
bool PullOnJump { get; set; }
bool PullOnCross { get; set; }
double MaxStockSpread { get; set; }
double MaxHedgeSpread { get; set; }
(These are just examples, not real code, and anyway what they mean isn't...
I've got the following pattern for my global ignore pattern:
*.pdb *.suo *.user *.cache */_ReSharper */bin */obj *.o *.lo *.la *.al .libs *.so .so.[0-9] *.a *.pyc *.pyo *.rej ~ ## .#* .*.swp .DS_Store
resharper folders for example (_ReSharper.SubtextSolution) are still being committed as well as some other folders such as bin for some ...
Can anyone recommend any resources on the .NET threading API? I've used a few of the basic features, but I'd like to get more familiar with the more obscure parts.
...
I have been thinking of starting a site of my own for long time. I am good at all concepts of C#/ASP.NET and all DB stuff. I have created and can create a site from scratch for myself. But the effort/time involved in creating a site from scratch is little discouraging, where next thing (and more important thing) I need to worry about is ...