Skip to content

Commit 15d9756

Browse files
committed
Add default FileSystemWatcher to unityaot profile (case 1344045).
1 parent 4958d56 commit 15d9756

8 files changed

+864
-3
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
#if MONO && (!MOBILE || UNITY_AOT)
5+
6+
using System;
7+
using System.IO;
8+
namespace System.IO.CoreFX
9+
#else
10+
11+
namespace System.IO
12+
#endif
13+
{
14+
public partial class FileSystemWatcher
15+
{
16+
/// <summary>Called when FileSystemWatcher is finalized.</summary>
17+
private void FinalizeDispose()
18+
{
19+
}
20+
21+
private void StartRaisingEvents()
22+
{
23+
throw new PlatformNotSupportedException();
24+
}
25+
26+
private void StopRaisingEvents()
27+
{
28+
throw new PlatformNotSupportedException();
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)