I want to create a compiler with Coco/R and support IntelliSense
I am a beginner in Compiler Engineering and I just want to know how to support IntelliSense. ...
I am a beginner in Compiler Engineering and I just want to know how to support IntelliSense. ...
I have simple enum, enum simple { one, two, three }, and I have a class that has a property of type simple. I tried decorating it with the attribute: [XmlAttribute(DataType = "int")], but when I try to serialize it using an XmlWriter, it fails. WHat is the proper way to do this? Do I have to mark the enum itself as well as the property, ...
I previously asked, How to determine the target of a symbolic link or Reparse Point? ...and got an answer that suggested the use of the Win32 function GetFinalPathNameByHandle, a function first available on Vista. What happens if I build the .NET Assembly and then attempt to run it on WinXP, or WS2003, which does not have the GetFin...
I have a C# client/server network program I've written using TCPListener and TCPClient classes. The server is reading everything from the client (small amounts of xml) just fine until I try to send a large file (100k) back to the client. I'm using stream functions for both client and server with non-blocking socket functions. When I do...
The TextWrapping feature in Silverlight is described here. However, I'm trying to find out the details of their line-breaking algorithm. Obviously a space will cause the text to break (or split), encouraging the text to wrap to the next line. And through trial and error I've found that these characters also cause a split: \t (tab) -...
I'm designing a small directory synchronization engine that can take different kinds of sources and handle incremental synchronization. I have defined an interface for a DirectorySource that currently looks like this: public interface IDirectorySource { IEnumerable<IDirectoryEntry> GetChanges(IList<string> attributes, IChangeToken t...
MS Press Self packed Training kit Exam 70-536, by Tony Northup and Shown Wildermuth. I have bought this book year ago to get prepared for the exam, but I did not because I was so busy with my job. Is there a better resource that save my time. Is this a good book. For best estimations I think it will take like 6 months tell I pass the...
I'm currently in the process of backing up my Dev machine so that I can upgrade to Windows 7. I'm super stressed about the possibility of losing something in the process. How do you developers create appropriate backups of all your Visual Studio solutions, controls/components, and other development materials to make sure that everythin...
Hi there, I have two domains for example www.male.com and www.female.com which both point to the same website app. In this app I have an HTTP module which checks if the session of the user is still active and if so checks if the user is a male or female. I want to check from which domain the user entered the website. If the user is a m...
According to the MSDN: Because the Equals and GetHashCode methods on anonymous types are defined in terms of the Equals and GetHashcode of the properties, two instances of the same anonymous type are equal only if all their properties are equal. However, the following code demonstrates the compiler generated implementatio...
Notice in the image below the 1px highlight below the text in the grey panel. How could this be achieved with WPF/Silverlight? . ...
What would the best practice be for laying out the following item? . I am particularly interested in what controls I should use and how I position the delete icon to appear on the right-hand side and the tools icon to appear in the middle always? Thanks in advance. ...
Why can’t compiler detect at compile-time that obj references object of type B and thus reports an error when we try to cast it to type A? public class A { } public class B { } static void Main(string[] args) { B b = new B(); object obj = (object)b; A a = (A)obj; // exception thanx ...
Hello, I'm building a Windows Mobile application, based on WM 6.5 Professional SDK. I need to display a website created with Silverlight, but standard WebBrowser Control doesn't seem to support Silverlight. Is there any other way, to display Silverlight websites? Any other controls? Thanks in advance for any help, MattheW ...
Basically, I'm using an ORM (specifically LLBLGen) that creates entity objects for all my tables. All these entity types inherit from a base class (or really a set of them). I want to create an extension method that accepts a List of the base class and returns some string but I want to pass in inherited types without explicitly casting. ...
I have an ItemsControl in a ScrollViewer. The ItemsControl.ItemSource is set to the Observable Collection. Every time I add an item to the collection, my application nearly doubles in memory usage and eventually after enough adds. Here is a rough sketch: <Scrollviewer Name="MyScroll"> <ItemsControl Name="MyItemsControl"> ...
What is the difference between Int32 and UInt32? If they are the same with capacity range capabilities, the question is for what reason UInt32 was created? When should I use UInt32 instead of Int32? ...
I have a project ("The Project") that references an external web service. I am then referencing that project in an ASP.Net web application ("The Web Application"). When I reference "The Project" in "The Web Application" the app.config is not copied over, which isn't a problem. Does "The Project" take care of know what endpoint to use? Ca...
Hello, My question is with regard to the .NET garbage collector. For any executing application, can I find out the number of times the GC has run (including the generation numbers for that collection) and how much time was spent on the same? I could find a lot of explanation on the internal framework and working of the G...
I have a Windows Mobile application written in .NET We use a ListView to show a list of bookings. We show the date and the subject of the booking. That's pretty limited. We would like to show quickly if possible additional data, like who created the booking, the location for the booking. The ListView on Compact Framework doesn't let us ...