The automation of the creation of classes, files, documentation, or anything else for which manual creation is costly.
Questions tagged [auto-generate]
654 questions
3
votes
0 answers
Add a web reference to a project but make the auto-generated proxy classes internal (i.e. not public)
I'm building a class library that uses a web reference in its data access layer, but much to my dismay, there doesn't seem to be an acceptable way to set the access for the auto-generated proxy classes. By default, they're public, but I don't want…

rory.ap
- 34,009
- 10
- 83
- 174
3
votes
2 answers
Generate Local Resource for all pages
Is There Any Way or trick to generate local resource for all pages in visual studio 2010 automatically?
I have about 500 pages and UserControls. its hard to generate resource for every page one by one.
is there Any Add on or extension for…

Shahin
- 12,543
- 39
- 127
- 205
3
votes
2 answers
Java enum autogenerate getInstance method?
Lets say I have the following java enum
public enum Color {
RED(10),
GREEN(22),
BLUE(33);
private int value;
Color(int value) {
this.value = value;
}
public int intValue() {
return value;
}
}
In order to be able to…

George
- 7,206
- 8
- 33
- 42
3
votes
1 answer
Compiler Generated GetHashCode()
I'm working on writing a compiler for a language running on .net and one of the things I would like it to do is to automatically generate the GetHashCode method, but I have several questions:
Is this possible, does the compiler know enough about…

Wesley Wiser
- 9,491
- 4
- 50
- 69
3
votes
0 answers
Changing autogenerated makefile template in CDT Eclipse
I just wonder if is it possible to edit autogenerated makefile or makefile template in Eclipse CDT. What I want to do is make diffrent folders structure. I would like to get something like:
../prj_folder
--../bin <-- here goes all my executable…

kodi-16
- 31
- 1
3
votes
2 answers
Automatically generate Date + 4-digit sequence number for ID in Access 2010+
I need to automatically generate a 12 character value for my Business Key. Without any user interaction.
8 character -> Today Date (yyyymmdd or ddmmyyyy).
+
4 character -> Sequential Number (0001,0002,0003).
The Sequential Number must reset…

Joshua Dalley
- 339
- 3
- 6
- 23
3
votes
1 answer
Generating code series and taking previous ones into account
I have an SQL database of unique codes (consiting of numbers/letters).
I want to generate large amount of new codes for this database, that also need to take into account the previous codes that were not generated with any kind of seed or…

JuhaKangas
- 875
- 5
- 17
3
votes
4 answers
Is there a lib to make html easier in C#/.NET/ASP.NET
I remember once seeing a project a guy did where he write something like this in some language with json like strings which created pretty good html. Is there something like it i can use for C# or .NET
radio-box{ AName,…
user34537
3
votes
1 answer
Best way to generate data to fill USB memory?
I need to fill a USB memory and I want others to be able to repeat this in an easy way. SO I dont want to write "find a file that filles the memory" so they have to look around for such a file.
Rather I want to generate X MB of data and write that…
user1190832
3
votes
0 answers
VS2012 Generate New Type Error/Bug with Solution Folders
Whenever I try to use VS2012's built-in "Generate -> New Type..." to create a class in a different solution folder, I get the following error message:
"Generate Type failed: Object reference not set to an instance of an object."
Only when I move the…

Riegardt Steyn
- 5,431
- 2
- 34
- 49
3
votes
1 answer
Creating a single random Magento coupon
I'm having some trouble. What I want to do is automatically generate a single random coupon code in Magento each time someone subscribes to our newsletter. The coupon is 10 dollars off anything and will have an exp. date of two weeks after…

Kale
- 601
- 1
- 8
- 25
3
votes
2 answers
How can I create an auto-generated enum from a resource file?
I want to create an auto-generated resource file similar to R from android. I know how to do the parsing and creation of the file and essentially creating a new class file. What I don't know how to do is start this auto-generation process.
So,…

ahodder
- 11,353
- 14
- 71
- 114
2
votes
6 answers
Switching data access strategy far into a project?
In a project we have implemented the data access layer (DAL)
with a visual designer that auto-generates a lot of code
(in our case: strong-typed DataSets and DataSetTableAdapters in .NET).
However, using source control
I find it troublesome to edit…

Ole Lynge
- 4,457
- 8
- 43
- 57
2
votes
3 answers
Splitting autogenerated C# file
I have a huge autogenerated C# file. It contains many enums and many classes.
The file is so big that it regularly blocks Visual Studio when it updates intellisense.
I would like to chop the file to smaller segments. For example just separating the…

user256890
- 3,396
- 5
- 28
- 45
2
votes
1 answer
OpenGL auto code generator from a vector image
Is there any kind of application, tool, lib, ... that generates OpenGL functions from a vector image?
To avoid any misunderstanding: I don't want to render something like an SVG file in my 2D OpenGL project, I want to create vector image in my…

mk.persia
- 49
- 1
- 6