Esempio n. 1
0
 /// <summary>
 /// Gets all values for the specified property.  The property must already be registered in order for it
 /// to exist.  If the property was registered for a type that doesn't match `T` then it will be the same
 /// as if that property was never registered.
 /// </summary>
 /// <param name="propertyName">Case sensitive name of the property to get values for</param>
 /// <typeparam name="T">The type of values the property contains</typeparam>
 /// <returns>Returns the values of the properties only for particles managed by this reservation</returns>
 /// <exception cref="KeyNotFoundException">The property name is not registered for the specified type</exception>
 public Span <T> GetPropertyValues <T>(string propertyName)
 => _particleAllocator.GetPropertyValues <T>(this, propertyName);