.Net Namespace Question
Hi, I have two namespaces: 1) Foo.Bar 2) Another.Foo.Bar From a class in namespace 2, how do I reference a class in namespace 1? Using Foo.Bar leaves you in namespace 2 still... I hope this is reasonably clear! Thanks. ...
Hi, I have two namespaces: 1) Foo.Bar 2) Another.Foo.Bar From a class in namespace 2, how do I reference a class in namespace 1? Using Foo.Bar leaves you in namespace 2 still... I hope this is reasonably clear! Thanks. ...
I've got a pretty simple web site project that I want to build using CruiseControl.net. On one page there is a user control nested within a repeater control, and I need to get a strongly typed reference to that user control in the ItemDataBound event handler: ASP.usercontrols_stars_ascx stars = (ASP.usercontrols_stars_ascx)e.Row.Fin...
In my feed generation code I have things like: XNamespace itunesNS = "http://www.itunes.com/dtds/podcast-1.0.dtd"; feed.ElementExtensions.Add( new XElement(itunesNS + "subtitle", new XAttribute(XNamespace.Xmlns + "itunes", itunesNS.NamespaceName), "sample subtitle").CreateReader()); which generates something like ...
I have this serious problem. I have an enumeration within 2 namespaces like this : namespace FANLib { namespace ERROR { enum TYPE { /// FSL error codes FSL_PARSER_FILE_IERROR,... and somewhere else in my code, I use it like this : FANLib::Log::internalLog(FSLParser::FILE_IERROR, file_ierror, true, FANLib::ERROR::FSL_PARSER_FIL...
We plan on changing our company name starting October 1st. All of our namespaces, projects etc use XYZ.ComponentName. My question to you would be, on October 1st, what would you do? Change all the old components to ABC.ComponentName? Leave the old ones but any new development becomes ABC.ComponentName? Just stick with the old name? ...
I love the "Resolve" feature in visual studio. Typical scenario: Type in Debug Type . Notice that no intellisense appears Right-click Select Resolve Choose using System.Diagnostics or System.Diagnostics.Debug Beautiful. Use it all the time. Extension method scenario: Type in var maxNumber = new int[] {1, 2, 3, 4} Type . Notice th...
I have a series of xml messages, all with their own schemas and namespaces. The messages are currently marshalled using JAXB (we still live in a Java 1.4 environment) and we have a large amount of legacy code using this JAXB code so any solution needs to be minimally intrusive. My problem is that while each of the messages has a set of...
Hi, I have a small issue with one of my projects, I have an entity called Image which is used to stored information about uploaded images in a CMS system I have created. This hides the system.drawing.image this was not an issue until I needed to start doing image manipulation on a page which uses both classes. At the moment in the dec...
I have an XML document that I generate from an Entity Framework object. The generated XML looks like this: REPOSTED FULL XML <Task z:Id="i1" xmlns="http://schemas.datacontract.org/2004/07/MCC.DAL" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"> <EntityKey z:...
I have a bunch of controllers in a namespace Foo. I'd like to apply a before_filter 'require_user' to all of them, but not to other controllers, that do not belong to Foo namespace. Is there any way to accomplish this besides explicitly invoking a before_filter method in each controller? ...
Our web application has a control that's set up with a markup, code-behind, and designer file, as so: Markup <%@ Control Language="VB" AutoEventWireup="false" Inherits="NewNameSpace.Controls.generic_selector" Codebehind="generic-selector.ascx.vb" %> For some reason, while it worked before when it was in the default namespace, whe...
Hi Community, there is a project which I need to extend. All classes are in seperate files, I need to extend some of the classes without rewriting existing code in other files. My idea was to use namespaces but I fail. Here is an example: I've renamed the original A.php class file to A_Original.php: class A { public function hell...
Is there a way to have a .NET assembly accessible for only authorized sources? I mean I want to have a DLL that contains components, but I don't want anyone to be able to use these components but the other DLLs EXEs in my solution. I do want them to be in separated DLLs though. Restriction on namespace might also be a good idea if this...
It seems using namespace for swc library requires the manifest file. Is there a way to use the regular - mark in Eclipse the files to export - and have them reside in a custom namespace without having to write each component in manifest file? ...
Hi, We are using dom4j 1.6.1, to parse XML comming from somewhere. Sometime, the balise have mention of the namespace ( eg : ) and sometime not ( ). And it's make call of Element.selectSingleNode(String s ) fails. For now we have 3 solutions, and we are not happy with them 1 - Remove all namespace occurence before doing anything wi...
I'm in a VB.NET application. I have referenced some java.* namespaces in my file and am utilizing objects and methods from this namespace throughout the code. Presumably this is relying upon J# to compile. Imports java.util Imports java.util.zip Imports java.io Are these JDK namespaces fully contained in the .NET framework, or will my...
Say I have 3 different swfs: dog.swf, cat.swf, mouse.swf, and each has their corresponding fla file. In the fla files I have movie clips like "head" and "tail", which are exported for Actionscript with names like Head and Tail, and each just contains an image. The problem comes when I have a main swf that loads and unloads these animal ...
Brainstorming needed. I have a problem with Javascript libraries (jQuery, ExtJS etc.) that don't seem to play well along with Javascript Intellisense built in Visual Studio 2008. They provide certain utility helper functions that intellisense fails to understand. ie. ExtJS code // convenience function to create namespace object placeho...
I've inherited a web project that was being published by another developer. The domain is changing so I've created a new project in VS2005 and added the existing files. I've converted the project to a web application to create the designer files. However, none of the existing pages have a namespace declared. I'm also getting errors refer...
Banging my head against this one for a long time. On Rails 2.3.2, Ruby 1.9.1. Trying to use one form to create three objects that have these relations: class Person has_one :goat end class Goat belongs_to :person has_many :kids end class Goat::Kid belongs_to :goat end Here's a summary of the schema: Person first_name l...