hawkeye camera support(not tested)
This commit is contained in:
19
framework/Inspectron.HawkEye/UDT/CoreExtensions.cs
Normal file
19
framework/Inspectron.HawkEye/UDT/CoreExtensions.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace UdtSharp
|
||||
{
|
||||
public static class CoreExtensions
|
||||
{
|
||||
public static bool TryGetValue(this HashSet<InfoBlock> self, InfoBlock equalValue, out InfoBlock actualValue)
|
||||
{
|
||||
if (self.Contains(equalValue))
|
||||
{
|
||||
actualValue = self.First(x=>x==equalValue);
|
||||
return true;
|
||||
}
|
||||
actualValue = null;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user