Hello. I am learning about Attributes and I still didn't understand what the Inherited bool property refers to. Does it mean that If i define my classe AbcAtribute, if I inherit another class from it, that derived class will also have that same attribute applied to it?
Thanks
...
Is it possible to use native Win API functions in Mono through Wine? Are there some additional libraries for interactions between Mono and Wine?
...
how do I trigger another control's method?
I have a function that can be terminated by clicking a button but the program can also run to completion. Since the termination logic is the same regardless of how the function ends I'd just like to trigger the termination logic on the stop button.
...
Simple question: I want to open a URL using the Default Browser, so I just do Process.Start(url). However, I noticed that this returns an IDisposable object.
So now I wonder if I have to dispose it? Or, for that matter, if my Application is in any way responsible for this process? The intended functionality is simply "Fire and forget", ...
I've got a one line method that resolves a null string to string.Empty which I thought might be useful as an extension method - but I can't find a useful way of making it so.
The only way I could see it being useful is as a static method on the string class because obviously it can't be attributed to an instance as the instance is null ...
Hi,
we have testserver for a ASP.NET MVC project. Everything works fine on dev machines, but we can't login if "Remember me" checked in on the login page (in this case the request is redirected to the login page, no exception occurs as far I know).
If we open a browser in RDP on the testserver, it's possible to use "Remember me" correc...
I have a web service running on the server and the web service needs to shell out and run a gui application. This application runs on it's own, but it has some windows that it pops up to display. Currently as soon as the application gets to any point where is pops up a window, the application dies.
...
What is Spec# I've been hearing about?
...
We have a large codebase in VS 2008. We have developers that need to rely on the VS IDE for day-to-day development. But we also have complicated dependencies and deployment steps and require an automated nightly build.
I am familiar with NAnt. It is perfect for our out-of-IDE build and deployment steps. Unfortunately, I haven't seen a n...
Can someone explain why the first of the two following examples is valid and the other is not? More specifically, how is a relationship created between T and TProperty in the first example?
//Example 1
class SomeClass<T> where T : class
{
void SomeMethod<TProperty>( Expression<Func<T,TProperty>> expression ){ ... }
}
//Example 2...
Hello. I'd like to know how does .maxstack really work. I know it doesn't have to do with the actual size of the types you are declaring but with the number of them. My questions are:
does this apply just for the
function, or to all the functions
that we are calling for?
even if it's just for the function
were .maxstack is being declar...
I have some custom type:
[RdfSerializable]
public class Item
{
[RdfProperty(true)]
public string Name { get; set; }
}
and some other type that has array of Item:
[RdfSerializable]
public class Container
{
// ... some code
// if this attribute is missing, then this property will not be exported as array
[Car...
I'm only dealing with one database table / entity object: NodePath.
Given a particular Node, I want to get only a subset of all its NodePaths according to this query:
select
*
from
NodePath
where
NodeId = @GivenNodeId and
Id in
(
--active paths
select
a.Id
from
NodePa...
I've been trying to get the logic right for my timer and backgroundworker thread. Granted I don't fully understand the whole system despite all my reading. the following are excerpts of code concerned:
My polling button :
private void pollStart_Click(object sender, EventArgs e)
{
tst_bgw = new BackgroundWorker();
//...
As a C++ stickler, this has really been bugging me. I've always liked the idea of the "language-independant framework" that Microsoft came up with roughly a decade ago. Why have they dropped the ball on this idea? Does anyone know the reasoning behind it?
...
Hi all, I need a regular expression that will match text enclosed in parentheses. The parentheses should be included. Here are some examples.
String: "(AB123-16W) DJ2988W61"
Should match: "(AB123-16W)"
String: "(6541238 Rev. B, PS B1 & PS B2) 62MJ301-29 Rev. NC"
Should match: "(6541238 Rev. B, PS B1 & PS B2)"
Any ideas?
...
I'm new to WCF (and pretty rusty with .NET in general) so there's a distinct chance this is an answered question and I just missed it.
I'm building an ASP.NET MVC app that will be using a RESTful JSON-based API for its backend. I've been looking into the different options for how to talk to such an API in .NET and it looks like WCF is t...
Is this the actual type methods without a return value return?
If so, where is the distinction that "nothing" is returned made?
...
When i run the following code to serialize the facbook users, the code generated is something like:
<?xml version="1.0"?>
<ArrayOfUser
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="fbapp">
<user>
<user xmlns="http://api.facebook.com/1.0/">
...
Hi
This is a really strange issue. I have developed a small MVC application and have done testing up until now using the VS2008 built in dev server and everything works as I expect. I have now moved the solution to IIS hosted and I see different results in a view which uses an Ajax.ActionLink.
The actionlink links to a controller actio...