How do I get a list of all loaded Types in C#?
I need to retrieve all enums that were loaded from a given set of Assemblies. ...
I need to retrieve all enums that were loaded from a given set of Assemblies. ...
What should dictate when I should use the configurationManager.AppSettings or the strongly typed settings that visual studio generates? The strongly typed ones seem much more appropriate in most cases, but I suppose that it would be possible to add settings dynamically to a deployed application using the ConfigurationManager approach, b...
I have a simple gridview (well it is now) it populates, I can edit it. but when it comes to updating I just cant get it to work. The following code creates a gridview which searches for users whose name starts with a "c" (Thats part of my filtering I stripped out) The problem is when I click the update button it won't update. The Store...
The caption may sound a little weird. Allow me to elaborate using an example. The Object.Equals function usually requires that a.Equals(a) returns true. Unless you're doing something twisted in your code, every class should adhere to this rule. So we could write a generic unittest that checks all available classes to comply. (We might ...
I am working in c#.Net. Is there any way to make .Net application plateform independent? So that I can run it to any OS. Kindly give me some guideline. Thanks in advance. ...
I want to create a System.Drawing.Color from a value like #FF00FF or FF00FF without needing to write code for that. There is any .NET built-in parser for that? ...
The same code on two different web sites (on the same solution), VB.Net (framework 3.5). The Code: Public Class UserTest Public hhh As Integer Public fff As String Public Sub New(ByVal hh As Integer, ByVal ff As String) Me.hhh = hh Me.fff = ff End Sub End Class Dim lst As List(Of UserTest) = N...
When I try to access "Application.CommonAppDataPath" i get this error message: System.Deployment: Store metadata "CurrentBind" is not valid Stack Trace: at System.Deployment.Application.ComponentStore.GetPropertyString(DefinitionAppId appId, String propName) This is only in Debug. When running as an actual published cli...
Hi, I am having multiple windows( .xaml files). I want to dock one window in other. Say, I am having a ParentWindow.xaml. On a button click in ParentWindow I open ChildWindow.xaml. After opening ChildWindow.xaml, I have to dock it in the ParentWindow.xaml. How to implement this? ...
Is it possible to query an OleDB connection to find out if you must use square brackets or quotes? SQL: SELECT [FullName] From [My Users] Oracle SELECT "FullName" From "My Users" MySQL: SELECT `FullName` From `My Users` ...
I am trying to display a set of data using a DataTemplate in a ItemsControl, with the ItemsPanel set as a uniform grid of size 3 x 3. The ItemsSource of the ItemsControl is set to bind to a CollectionViewSource which filters the source collection based on a search term. This all works fine. The list I am binding to is of an arbitrary si...
I need regex that will match this Fred, Jhon, Tree, and there could be some spaces between the commas and the words, and between the start of the line and the first word. Can anyone help me with this ? ...
It is possible to get the name of the current installation file (.msi) from the Installer class of custom action ? I need something like this: [RunInstaller(true)] public partial class ProjectInstaller : Installer { public ProjectInstaller() { InitializeComponent(); **var fileName = CurrentMSIFileName();** ...
I want to use Date.ToShortDateString() but make it spit out the date in US format. Is this possible.... ...
I ran into an InvalidProgramException. This article: http://support.microsoft.com/kb/312544/en-us Suggests I run PEVerify.exe, but I can't seem to find it. Do you know where I can get it from? Thanks. ...
Hi, i implement a big form in winforms c# with visual studio 2008. after working fine for a big portion of the dialog it start showing a lot of error masseges as in the title when i try to open the designer "The variable is either undeclared or was never assigned" i got this for a lot of controls that worked fine before. i think it h...
We would like to publish a base model, that represents our core business data. Separate departments would reference this base model, (published as an .NET assembly) Their project would create their schemas that reference the core business schema. Is it possible that each team would reference this common assembly, and then build their o...
Consider a network folder: \\desiis\c$\Company\B2b\Monitor On that machine, any process that tries to delete the directory Monitor receives an error because a user on the LAN has that directory open (likely with Windows Explorer). Can I detect, via C# and .NET framework, if any user (and which user) has a particular directory open/in ...
I've been using a Hashtable, but by nature, hashtables are not ordered, and I need to keep everything in order as I add them (because I want to pull them out in the same order). Forexample if I do: pages["date"] = new FreeDateControl("Date:", false, true, false); pages["plaintiff"] = new FreeTextboxControl("Primary Plaintiff:", true, tr...
Here is the setup: I create public/private key pair with .NET, I want to sign a string. I take a random string, get a byte[] from it, sign it, and take the signature in the java app. I want to verify it in java ( (!)I'm talking about Android's java). The process to take the public key to Java environment: When I create the public key, ...