generated-code

Visual Studio 2012/2013 Slow “List Members” Intellisense

匆匆过客 提交于 2019-12-09 10:14:57
问题 I am coding in VB.Net using Visual Studio 2012 (Premium, Update 3, ReSharper 8). I have the ReSharper intellisense deactivated and I am using the standard VS intellisense. For a while now I have been experiencing serious intellisense performance problems. My issue appears to be specific to the "List Members" subset of intellisense. Almost every time list members intellisense is activated it is taking around 2 seconds to load and display the list. The application hangs until the member list

Do any PHP libraries exist for parsing ASN.1 or generating PHP code based on it?

雨燕双飞 提交于 2019-12-08 15:45:06
问题 I've already looked myself but it seems my Google-fu is not strong today. I'm working to develop a standardized protocol for exchanging data structures over a TCP/IP connection between an Apache / PHP server and embedded C code on a microcontroller. We are using ASN.1 notation, and what I would really like to do is to have a piece of PHP code that can parse the ASN.1 document and use it to interpret incoming data. It would produce a PHP object (or array) that is structured appropriately based

Data Row Type detection when using XSD generated DataSets

こ雲淡風輕ζ 提交于 2019-12-08 07:37:13
问题 I have an XML Schema Definition (XSD) file in Visual Studio 2010. The DataSet Designer generates a strongly typed dataset in the <name> .designer.vb file Depending on a number of errant factors, it seems to sporadically provide strong typing for enumerable operations (used in LINQ or for each loops) For instance, sometimes the generated code base is able to detect the type, and sometimes it's not: The offending code seems to be whether or not the generated file has the function: Public

Can I add MVC 2 DataAnnotation attributes to existing properties?

旧城冷巷雨未停 提交于 2019-12-06 03:14:48
I'm using a generated class as a model, and I wish to add DataAnnotation attributes to some of its properties. As it's a generated code, I don't want to add the annotations directly. Is there another way to attach them to a property? I'd considered making the model an interface, and using a partial class to get the generated class to subscribe to it. Is there a less elaborate solution, assuming that would even work? Yes there is. You have to create metadata class that will have the same properties that your original model, and connect it to your model with MetadataType attribute: [MetadataType

Problems by import of a multiple modules maven 2 project into eclipse workspace

孤街醉人 提交于 2019-12-05 18:58:25
I was wondering if someone has experienced the same problem as me and can help me. I have a maven project which contains 6 modules. Some of modules are depending on each other. The project is written in Java and builds to jars, wars and aar. I've been trying to import it to Eclipse with the m2eclipse plug-in. It seems to work fine until the project builds. During the build process I get hundreds of errors complaining about missing Java files which are generated. As I found out eclipse can't recognize that some of generated packages should be interpreted as source code. I don't realy know what

ASP.NET how to resolve CS1513: } expected error on page

匆匆过客 提交于 2019-12-05 01:45:04
I am getting an error at run time when viewing my ASP.NET page in the browser. I am not getting any build errors however I am getting the following compiler error at runtime: Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1513: } expected Source Error: Line 329: #line hidden Line 330: __output.Write("\r\n\t\t\t</div>\r\n\t\t"); Line 331: } Line 332: Line 333: private System.Web.UI.Control __BuildControl_

Exclude file from StyleCop analysis: “auto-generated” tag is ignored

半世苍凉 提交于 2019-12-04 15:28:06
问题 At the beginning of a C# file, I have added: //----------------------------------------------------------------------- // <copyright company="SomeCompany" file="MyFile.cs"> // Copyright © Some Company, 2011 // </copyright> // <auto-generated /> //----------------------------------------------------------------------- I want StyleCop to skip checking this file, so I used the auto-generated trick explained in other answers. However, after cleaning and rebuilding my solution, StyleCop keeps

Exclude file from StyleCop analysis: “auto-generated” tag is ignored

≯℡__Kan透↙ 提交于 2019-12-03 09:37:43
At the beginning of a C# file, I have added: //----------------------------------------------------------------------- // <copyright company="SomeCompany" file="MyFile.cs"> // Copyright © Some Company, 2011 // </copyright> // <auto-generated /> //----------------------------------------------------------------------- I want StyleCop to skip checking this file, so I used the auto-generated trick explained in other answers . However, after cleaning and rebuilding my solution, StyleCop keeps generating warnings for this file. Why does this happen? How can it be fixed? I am using Microsoft Visual

Generating custom methods in Eclipse

こ雲淡風輕ζ 提交于 2019-12-01 18:33:56
问题 I want to generate custom methods in Eclipse like the way we can generate toString, getters and settlers (right click -> source ->). Could anyone tell me what is involved in doing this? Thanks, Dutch 回答1: You could add your own action after the recent (Eclipse Galileo 3.5) generate toString() action, using the active contribution URI: menu:org.eclipse.jdt.ui.source.menu?after=additions with the active action definition identifier: org.eclipse.jdt.ui.edit.text.java.generate.tostring using the

Generating custom methods in Eclipse

自闭症网瘾萝莉.ら 提交于 2019-12-01 17:56:28
I want to generate custom methods in Eclipse like the way we can generate toString, getters and settlers (right click -> source ->). Could anyone tell me what is involved in doing this? Thanks, Dutch You could add your own action after the recent (Eclipse Galileo 3.5) generate toString() action, using the active contribution URI: menu:org.eclipse.jdt.ui.source.menu?after=additions with the active action definition identifier: org.eclipse.jdt.ui.edit.text.java.generate.tostring using the active contribution item class: GenerateToStringAction (package org.eclipse.jdt.ui.actions ) from the