Initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using SharedMemory;
|
||||
|
||||
try
|
||||
{
|
||||
using var numbers = new SharedArray<int>("MySharedArray");
|
||||
Console.WriteLine(numbers.Length);
|
||||
Console.WriteLine(numbers[0]);
|
||||
Console.WriteLine(numbers[^1]);
|
||||
}
|
||||
catch (FileNotFoundException)
|
||||
{
|
||||
Console.WriteLine("No process has MySharedArray open. Start the first program before this one.");
|
||||
}
|
||||
Reference in New Issue
Block a user