Questions tagged [custom-sections]
33 questions
31
votes
2 answers
How do I get intellisense in app.config for a custom section?
We have a custom section in my app.config file related to our IoC container class. How can I get intellisense when editing the config file for this section, as well as getting rid of the compiler messages informing me of the missing schema.
I found…

Lasse V. Karlsen
- 380,855
- 102
- 628
- 825
7
votes
2 answers
app.config: how do I make a nested customSection called appSettings be the ConfigurationManager.AppSettings
my desired app.config would be like this:

J Benjamin
- 4,722
- 6
- 29
- 39
4
votes
1 answer
Gather variables from multiple files into a single contiguous block of memory at compile time
I'd like to define (and initialize) a number of instances of a struct across a number of *.c files, but I want them to gather at compile time into a single contiguous array. I've been looking into using a custom section and using the section's start…

Isaac Sutherland
- 3,082
- 4
- 28
- 37
3
votes
2 answers
Multiple identical custom config sctions in app.config
I'm attempting to create a custom config section in the app.config file of my C# .NET console application. It's to store some details about some servers, like so:

A. Murray
- 2,761
- 5
- 27
- 40
3
votes
0 answers
Why do gcc and clang place custom-sectioned const-funcptr symbols into writable sections when compiling with -fpic?
The program below demonstrates the issue:
void f(void){}
__attribute((section("mysect"),used))
void (* const fp)(void)=&f; //const fn ptr placed in a WR segment iff compiled with -fpic AND a custom section is…

Petr Skocik
- 58,047
- 6
- 95
- 142
3
votes
2 answers
Alternative to OverLibWrapper for displaying control tooltips in ASP.NET
I looked into a nice way to display tooltips dynamically and I found OverLibWrapper, which was exactly what I needed.
I have all the tooltip data stored in a custom configuration section, the tooltips are bound to their respective controls during…

Gustavo Puma
- 993
- 12
- 27
3
votes
1 answer
Custom icon for umbraco section
I am using Umbraco 7. I have created a custom section using
namespace MyUmbraco.Sections
{
[Application("CustomSection","mySection","myicon",8)]
public class CustomSection: IApplication
{
}
}
I am able to create nodes in my…

Chaitanya Gadkari
- 2,669
- 4
- 30
- 54
2
votes
1 answer
How to link Data in ELF file to show up during run time? STM32
I am stuck trying to have my FW version show up at run-time.
I have tried using the example from
Does gcc have any options to add version info in ELF binary file?
But with no luck. Here is what i have so far.
Using STM32L462 on STM32CubeIDE…

Almog Stern
- 66
- 6
2
votes
1 answer
weak symbols and custom sections in inline assembly
I'm stuck with a problem which is illustrated by the following g++ code:
frob.hpp:
template T frob(T x);
template<> inline int frob(int x) {
asm("1: nop\n"
".pushsection \"extra\",\"a\"\n"
".quad 1b\n"
…

EThome
- 70
- 6
2
votes
2 answers
Umbraco 7 custom section editor, move controller deftination from view to separate file
I have created my new custom section for Umbraco 7 backend.
Now I have created edit.html file property editor purpose with code: