Assigning value stored in an array with get{} using cSharp

Using cSharp, I am currently assigning the public float value shootForce as such :

public class Bullet {

public struct bulletData
{	
	
	private float _shootForce;
    public float shootForce	// The force at which missiles travel 
	{			
		get
		{
			_shootForce = 2f;
			return _shootForce;	
		}
		set{_shootForce = value; }
	}
}

I’m accessing the value from other classes / scripts such as moveMissiles.cs in this way :

Bullet B = new Bullet();

void FixedUpdate () 
{
	rigidbody.velocity = transform.up * B.playerBullet.shootForce;
}

How do I assign the value of shootForce to a value contained within an array defined outside the shootForce property.

You would do it just like you would with any other value:

arrayOfFloats[someNumber] = B.playerBullet.shootForce;

The above line of code demonstrates how you would assign the value of some bullet's shootForce to element someNumber of an array named someArray.

If you wanted to set it to the first element of an array named funkyArray you would do it like this:

funkyArray[0] = B.playerBullet.shootForce;

Note that arrays start with element number zero for most programming languages.