src/ApprienUnitySDK/Assets/Apprien/Scripts/ApprienProduct.cs
/// <summary>
/// Creates ApprienProduct objects from the products already added to the given builder.
/// Does not add any products to the builder.
/// </summary>
/// <param name="builder">Reference to a builder containing products.</param>
/// <returns>Returns an array of Apprien Products built from the given ConfigurationBuilder object</returns>
Creates ApprienProduct objects from the products already added to the given builder.
Does not add any products to the builder.
Creates ApprienProduct objects from the products already added to the given builder . Does not add any products to the builder .
public static ApprienProduct[] FromConfigurationBuilder(ConfigurationBuilder builder)
        {
            var products = new ApprienProduct[builder.products.Count];
            var i = 0;
            foreach (var product in builder.products)
            {
                products[i++] = new ApprienProduct(product.id, product.type);
            }
            return products;
        }
public static ApprienProduct [ ] FromConfigurationBuilder ( ConfigurationBuilder builder ) { var products = new ApprienProduct [ builder . products . Count ] ; var i = 0 ; foreach ( var product in builder . products ) { products [ i ++ ] = new ApprienProduct ( product . id , product . type ) ; } return products ; }
Creates ApprienProduct objects from the products already added to the given builder.
Creates ApprienProduct objects from the products already added to the given builder .
// HashSet cannot be indexed with [i]
Returns an array of Apprien Products built from the given ConfigurationBuilder object
Returns an array of Apprien Products built from the given ConfigurationBuilder object
builder
ConfigurationBuilder
Reference to a builder containing products.
Reference to a builder containing products .