Ejemplo n.º 1
0
 private IEnumerable <PropertyNativeBase> GetPropertyNatives()
 {
     return(_effectType.GetTypeInfo()
            .DeclaredProperties
            .Select(x => (property: x, attribute: x.GetCustomAttribute <CustomEffectPropertyAttribute>()))
            .Where(x => x.attribute != null)
            .OrderBy(x => x.attribute.Order)
            .Select(x => PropertyNative <int> .Create(x.property)));
 }
Ejemplo n.º 2
0
 public static extern MLResult.Code MLFoundObjectGetProperty(ulong handle, MLUUID id, uint index, ref PropertyNative property);