mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
16 lines
440 B
C#
16 lines
440 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
|
|
class MyClass2
|
|
{
|
|
private static WaitCallback? s_signalMethod;
|
|
private static WaitCallback SignalMethod => EnsureInitialized(ref s_signalMethod, () => new WaitCallback(M1!));
|
|
|
|
public static T EnsureInitialized<T>(ref T target, System.Func<T> valueFactory) where T : class { return target = valueFactory(); }
|
|
|
|
static void M1(object state)
|
|
{
|
|
}
|
|
}
|