Hi
Continuing my previous question
http://stackoverflow.com/questions/1782927/why-i-cannot-derive-from-long
I found an interesting problem.
Step one:
4294967296 & 0xFFFFFFFF00000000
Result: 4294967296.
Step two.
4294967296 & 0x00000000FFFFFFFF
Result: 0
Aha, So here I assume that 4294967296 == 0xFFFFFFFF
Let's check
(long...
I have the following structure in a Windows Form:
Form (AutoResize = true, AutoSizeMode = GrowAndShrink)
FlowLayout (AutoResize = true, AutoSizeMode = GrowAndShrink)
GroupBox
GroupBox
GroupBox
StatusStrip
My expectation is that changing the visibility of the GroupBoxes should cause the Window to snap to...
I have something like this:
public class Foo
{
public Bar[] Bars{get; set;}
}
public class Bar
{
public string Name{ get; set; }
}
I start reflecting:
PropertyInfo propertyInfo = typeof(Foo).GetProperty("Bars");
so far so good. I want to reflect deeper:
Type type = _propertyInfo .PropertyType; // this gives me that the t...
I hope this question isn't deemed too subjective - I don't really expect a definitive answer, but I hope that everyone's opinion will at least help me form my own.
I'm implementing a custom type system, that is a superset of the classical OOP type system. In this type system, object instances may be combined at runtime to form new insta...
An ASP.NET 3.5 application has two connection strings:
Data Source=RedDB;Initial Catalog=Red;User Id=myuser;Password=pas;Max Pool Size=50;Min Pool Size=1
Data Source=BlueDB;Initial Catalog=Blue; User Id=myuser;Password=pas;Max Pool Size=375;Min Pool Size=2
Suppose the RedDB connection has a stored procedure that is hanging indefinite...
The Visual Studio 2010 SDK ships with many assemblies like Microsoft.VisualStudio.Text.Data and Microsoft.VisualStudio.Text.UI that are just stubs. To write an extension for Visual Studio, you reference these assemblies, but set "Copy Local" and "Exact Version" properties of the references to false. When your extension is loaded in Visua...
Background
I'm trying to implement block file locking in my C# application. The built-in FileStream.Lock method throws an exception if it is unable to acquire the lock.
The underlying LockFile method returns a status code however I'd prefer not to use a spin-lock to wait for the file to be unlocked.
Question
Does anyone have any c...
I'm having an issue getting the public keys for some of the .net 4.0 beta 2 assemblies so I can make my internals visible to them (gross).
Normally, I'd just pop into SN.EXE and poof I'd have them.
But instead of getting what I'd normally expect I'm getting a bogus public key, and I'm not sure exactly why.
I'm using the 64bit version ...
I'm debugging classic asp code using VS 2008 sp1 on windows 7. Everything works great, I attach to the process and can debug. However, If I stop debugging visual studio will crash.
I read the recycling the app pool would help, but it has not helped me end a debugging session with out crashing. I have hunted through Google and stack o...
Microsoft has all interest in preventing cross-platform software to happen. The incompatibility between Windows and Linux is the main reason why people don't migrate to Linux in large numbers. Both the Mono and Moonlight projects are trying to eliminate exactly this obstacle.
Because of this, I wonder whether it isn't very risky to sta...
I'm looking for a reliable method to build a list of controls of <Type> contained in a specific <Panel> derived control - this includes those that are direct children, and those which are children of children and so on.
The most obvious way was to just do it recursively:
Add to list any children of this control of <Type>, then repeat fu...
I've searched throughout but can't find the exact answer to my question. Take for instance the following code:
public class Company
{
private string m_strName;
private Customer m_objCustomer;
public Company()
{
m_strName = "";
m_objCustomer = new Customer();
}
public string Name
{
get { retur...
This question is kind of the next level of http://stackoverflow.com/questions/895769/f-set-using-custom-class -- I want to define IComparable for a generic interface.
I have an arbitrary set of types which implement a shared metadata exchange interface, ITree. I want to compare across these types, using only the exposed data in ITree.
...
I am doing some transition animation using WPF and Blend 3. I have two outer usercontrols which is what I want the transition effect to happen on. Using Blend I can make this effect. The problem is however, that I dont know how to trigger this animation inside one of those usercontrols. The storyboard is only in scope for the window hold...
Hi there,
I have a webservice being consumed in the WinForm application. I generated a web service wrapper and invoked a web service method asynchronously. I get following exception in my result completed event handler (the event is raised from within the web service wrapper class). What could be the problem?
System.Reflection.Tar...
Hello everyone,
I am using SharePoint 2007 Enterprise + Publishing portal template + Windows Server 2008. And I am developing using ASP.Net + C# + .Net 3.5 + VSTS 2008 on SharePoint Server 2007. I am developing a custom authentication provider based on Forms authentication. When an anonymous access a page which needs authentication, by ...
I have a copy function that I'd like to override in subclasses to return the type of the subclass. Here are my interfaces:
Public Interface IBase(Of T)
Function Copy() As T
End Interface
Public Interface ICar
Inherits IBase(Of ICar)
End Interface
Public Interface IToyota
Inherits ICar
End Interface
And here are my classe...
Is there a way in .NET SqlClient to translate SqlType to actual SQL type declaration, like
SqlInt32 -> "int"
SqlGuid -> "uniqueidentifier"
SqlXml -> "xml"
SqlString -> "nvarchar(??)"
without doing it manually?
CLARIFICATION: I am trying to automatically refactor a number of SQL select statements, and I need to know what types d...
I am trying to create a TFS report which requires MDX. I am making a report that requires a calculated member. I am not 100% sure how this is done. The member i am trying to do is a difference calculation.
For example:
Table
Sept 1 Sept 2 Sept 3
Actual 0 32 58
Remaining 163 140 ...
hi2 everybody can u explain me that can i make setup of web application as i can do in windows application in .net , i want to make a setup for my web-project..
...