Managed refers to code that requires and will only execute under the control of a Common Language Runtime (CLR). Any code written in C# or Visual Basic .NET is managed code.
Questions tagged [managed]
890 questions
15
votes
1 answer
Rate Limiting based on URL and Path in Kubernetes
I need to implement Rate Limiting (based on URL and path) on applications deployed on Kubernetes Cluster (EKS).
I'm looking for a managed way that involves least scripting and does provide an interface through which to manage rate limits for…

Talha Tariq
- 151
- 1
- 1
- 3
15
votes
1 answer
Managed vs. unmanaged types
I was reading an article about how to use the sizeof operator in C#.
They say: "Used to obtain the size in bytes for an unmanaged type."
I know the difference between managed and unmanaged code. But my understanding is that all code I write in C#…

TGY
- 303
- 3
- 10
15
votes
2 answers
Best way to call 32-bit unmanaged code from 64-bit Managed Code using a managed code wrapper
The frequency with which I am coming across the situation where I have to call native 32-bit code from a managed 64-bit process is increasing as 64-bit machines and applications become prevalent. I don't want to mark my applciation as 32-bit and I…

Edward
- 1,043
- 10
- 24
13
votes
1 answer
Value Class in C++/CLI
What are the benifits of using a value class in C++/CLI.Can the value class contain member functions?

manu_dilip_shah
- 880
- 14
- 32
13
votes
3 answers
Deserializing a byte array
If I wanted to fill a structure from a binary file, I would use something like this:
using (BinaryReader br = new BinaryReader(File.Open(filename, FileMode.Open)))
{
myStruct.ID = br.ReadSingle();
myStruct.name =…

skink
- 5,133
- 6
- 37
- 58
12
votes
4 answers
What is an un/managed DLL? What is un/managed code?
Could someone please explain to me what an un/managed DLL is? And what is un/managed code?

Alex
- 7,432
- 20
- 75
- 118
12
votes
2 answers
C# unmanaged dll exporting (how it works)
I have found libraries that would export managed code as unmanaged so you can use it by unmanaged languages like C/C++. But I did not find anything that would explain how it's done (which is what I'm more interested in)
I'm looking for information,…

user3761832
- 563
- 2
- 7
- 18
11
votes
0 answers
Safely use SuppressUnmanagedCodeSecurity
I'm currently creating a managed wrapper to an unmanaged dll. Point is the wrapper does a TON of calls to the unmanaged dll but exports very few methods itself.
From the research I did this should be safe but I want to make sure I get this…

user836755
- 111
- 1
- 4
11
votes
1 answer
How to send a string by reference to an unmanaged C library that modifies that string?
I am new to the world of interacting with unmanaged libraries. I have an unmanaged C function that modifies a string by reference within the function. I'm having trouble passing a string from C# and getting it modified by the C function.
Here's the…

Donnie
- 113
- 2
- 5
11
votes
3 answers
Judy array for managed languages
Judy array is fast data structure that may represent a sparse array or a set of values. Is there its implementation for managed languages such as C#? Thanks

LicenseQ
- 1,721
- 1
- 15
- 21
11
votes
7 answers
Should I use Managed C++ or C# for my application?
If you had to decide between C# and Managed C++, which would you choose and why?
Are there benefits of Managed C++ over C#? Which language do you prefer? What decisions would you make under what circumstances?

OlimilOops
- 6,747
- 6
- 26
- 36
11
votes
9 answers
Performance of Managed C++ Vs UnManaged/native C++
I am writing a very high performance application that handles and processes hundreds of events every millisecond.
Is Unmanaged C++ faster than managed c++? and why?
Managed C++ deals with CLR instead of OS and CLR takes care of memory management,…

bsobaid
- 955
- 1
- 16
- 36
11
votes
5 answers
How can you explore the managed heap in a .NET application to identify possible memory optimizations?
We have a .NET application which our customers consider too large for mass deployment and we would like to understand what contributes to our memory footprint and is it possible to do any better without completely abandoning .NET and wpf.
We are…

Downward Facing God
- 113
- 1
- 6
11
votes
3 answers
C++ declaring a managed variable in a native code
I have a .NET form, and a native code in my Visual Studio. The problem is: I can't declare a global instance of my .NET form in my native code, like this:
Editor^ maineditor;
It gives me this problem:
error C3145: 'EditorEntry' : global or static…

Miguel P
- 1,262
- 6
- 23
- 48
10
votes
4 answers
What does the class name ending "Managed" mean (C# .NET)?
I'm relatively new to C# so please bear with me. I understand the basic difference between managed and unmanaged code. But I'm still a bit confused when to use some methods.
For instance what does the word "Managed" mean in some class name endings.…

Ben
- 2,435
- 6
- 43
- 57