Hi, Is it possible to parse and fetch TYPE PARAMETER & TYPE PARAMETER CONSTRAINTS information defined for a Generic class OR method in a C# source code using CodeModel APIs? I do not see any API exposed in EnvDTE & EnvDTE80 namespace. Can you please suggest me a solution. Regards, Manish
Manish Paul
Posts
-
Parsing C# source code using CodeModel object to find TYPE PARAMETERS & TYPE PARAMETER constraints defined for a Generic Class & Method. -
How to differentiate between Project reference and assembly reference?Hi, I am aware that the project references can be identified from CSPROJ file. However, my query was "Is there any code model API which can do this for me"? Regards, Manish
-
How to differentiate between Project reference and assembly reference?hi, I am using CodeModel apis to parse a CSPROJ (C# project) file. The VSProject::References API will return all refernces. How to differentiate between Project reference and assembly reference? Regards, Manish
-
Is it possible to add plugin/add-in to Visual Studio 2008 IDE for a Java based application?Hi, I am trying to add a plugin/add-in to Visual Studio 2008. But my limitation is, this application is in Java 1.6. So, I was wondering is it possible to add a java based plugin in Visual Studio 2008? Are there any APIs? Regards, Manish
-
.Net API GetMembers(BindingFlags) returns some additional members.Hi, In VS 2005 I am using Reflection to parse .Net System libraries. Using GetMembers(BindingFlags) returns some additional methods other what is defined in the interface/class in .Net system library. For filtering out I am using following BindingFlags combination
BindingFlags::Public | BindingFlags::Instance | BindingFlags::Static | BindingFlags::DeclaredOnly
I am trying to get the declared members in class/interface say for example System.Collection.ICollection which has following 4 members:
int Count { get; }
bool IsSynchronized { get; }
object SyncRoot { get; }
void CopyTo(Array array, int index);However using GetMembers I get following 7 members:
int Count { get; }
bool IsSynchronized { get; }
object SyncRoot { get; }
void CopyTo(Array array, int index);int get_Count();
bool get_IsSynchronized();
object get_SyncRoot()I get extra 3 get methods corresponding to each property. How do I suppress or filter out these additional members? ~Manish
-
compare string"string" class has overloaded "==" operator. You can directly use the == operator. Eg: string s1("hi"); string s2("hello"); if (s1==s2) { .... } else { .... }
-
Remove elements from XML. using XSLT and JAXP [modified]Well strangely I am reply to my posted query .. In the given example, it is expected that template in the XSLT, , should remove all occurrence of "outstation" elements from the XML document. This XSLT will work fine for any XML document which doesn't has a "DEFAULT NAMESPACE" declared in root element. In given example, I have declared a default namespace in root element as 'xmlns="http://www.contacts.com/transform"'. Because of the default namespace, the expanded name of element is pair of URI name and Element name (URI name here is "http://www.contacts.com/transform"). So the template defined in XSLT for "outstation" element will fail to match any element in XML file. As the namespaces link the XML & XSLT through a URI. So the solution to this problem is to add a namespace prefix with the namespace name "http://www.contacts.com/transform" in the xslt file and then use the prefix in the XPath statements as shown below: Solution is in XSLT: ... ... ...
-
Remove elements from XML. using XSLT and JAXP [modified]I am trying to remove some unwanted elements from a source XML document using XSLT and JAXP and create a new XML document in which those unwanted elements are not present. My XSLT works fine and removes the desired elements when there is no XMLNS attribute defined in root node of XML document. But the same java code & XSLT doesn't removes those elements when XMLNS attribute is set in root node of source XML document. In following example, I am trying to remove "outstation" elements from XML doc. Sample XML: abc21@yahoo.com xyz21@yahoo.co.in abc21@hotmail.com xyz21@msn.com 12345678 12345670 08012345678 08012345670 Sample XSLT: Java code snippet: public static void main(String[] args) throws Exception { .... .... Source xmlSource = new StreamSource(srcFile); Source xsltSource = new StreamSource(xsltFile); StreamResult result = new StreamResult(resFile); TransformerFactory transFact = TransformerFactory.newInstance(); Transformer trans = transFact.newTransformer(xsltSource); trans.transform(xmlSource, result); ... ... } Is there anyway to solve this problem, other than using DOM? -- modified at 8:59 Wednesday 18th July, 2007
-
How to use MSVC Compiler for Pro*CHi, Can I use MSVC compilers & precompilers to compile my Pro*C programs? If yes, how can I use MSVC compilers to compile Pro*C programs which contains Embedded SQL statements (eg. EXEC SQL INCLUDE emp.h;, instead of #include emp.h ). - Manish
-
How to create Plug-in for Win32 based IDE.Hi, I want to develop GUI-based plugin for Win32 IDE. I want to add a menu item to VC++ IDE. I m a beginner in COM & ATL programming, but I suppose I can use COM & ATL to create GUI plugin for VC++ editor. Please suggest/help/direct/guide me for same? -Manish
-
How to create Plug-in for Win32 based IDE.Hi, I want to develop GUI-based plugin for Win32 IDE. I want to add a menu item to VC++ IDE. I m a beginner in COM & ATL programming, but I suppose I can use COM & ATL to create GUI plugin for VC++ editor. Please suggest/help/direct/guide me for same? -Manish
-
How to create Plug-in for Win32 based IDE.Hi, I want to develop GUI-based plugin for Win32 IDE. I want to add a menu item to VC++ IDE. I m a beginner in COM & ATL programming, but I suppose I can use COM & ATL to create GUI plugin for VC++ editor. Please suggest/help/direct/guide me for same?
-
Plug-in for Win32 based IDE.Hi, I want to develop GUI-based plugin for Win32 IDE, like I want to add a menu item to VC++ IDE. I m a amateur in COM & ATL programming, but I suppose I can use COM & ATL to create GUI plugin for VC++ editor. Please suggest/help/direct/guide me for same? - Manish
-
Open source code for Configuration management. tools.Hi, Any pointers pointing to sites/organization from where I can get open source code for Configuration Management tools OR Version Control Systems will help. TIA, Manish