Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0213.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 00faffd0ef404aaf59d5c8050e39beb51d816164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// cs0213.cs: You do not need to use the fixed statement to take the address of an already fixed expression
// Line: 12
// Compiler options: -unsafe

class UnsafeClass {
        unsafe UnsafeClass () {
                int value = 5;
                Calculate(value);
        }
        
        unsafe void Calculate (int value) {
                fixed (int *x = &value) {}
        }
}