Get data From a List C#

hello,

I’m creating a AnimationState Controller.
What i want is to add animations in the editor with the list.
how can i get data from the CustomAnimation List.

in the editor you can choose de number of lists.

using UnityEngine;
using System.Collections;

[System.Serializable]
public class CustomAnimation
{
	public string Name;
	public AnimationClip AnimationClip;
	public float Distance;
	public enum CustomActivation { Float , Bool , String };
	public CustomActivation Activation;
	public enum CustomWhereToFind { GetComponent , InThisScript };
	public CustomWhereToFind WhereToFind;
}

[System.Serializable]
public class AnimationStateController : MonoBehaviour 
{
	public bool UseNavMesh;
	public Transform Target;
	
	public AnimationClip Idle;
	public AnimationClip Walk;
	public AnimationClip Run;
	public AnimationClip Attack;
	
	public CustomAnimation[] CustomAnimations;
	
	
	public float AttackDistance = 5;
	
	private string CurrentAnimationState;
	private float Distance;
	private float LastDistance;
	
	// Use this for initialization
	void Start () 
	{
		CustomAnimationController ();
	}
	
	// Update is called once per frame
	void Update () 
	{
		Distance = (transform.position-Target.transform.position).magnitude;
		
  		AnimationStates ();
		Animations ();
	}
	
	void CustomAnimationController ()
	{
		
	}
	
	void AnimationStates ()
	{
		if (Distance > LastDistance)
		{ 
   			CurrentAnimationState = "Walk";
		}
		
		if (Distance < AttackDistance)
		{
			CurrentAnimationState = "Attack";
		}
		
		else
		{
			CurrentAnimationState = "Idle";;
		}
		
		LastDistance = Distance;
	}
	
	void Animations ()
	{
		if (CurrentAnimationState == "Idle")
		{
			animation.CrossFade("idle");
		}
		
		
		if (CurrentAnimationState == "Walk")
		{
			animation.CrossFade("walk");
		}
		
		
		if (CurrentAnimationState == "Attack")
		{
			animation.CrossFade("attack");
		}
	}
}

Sorry for my English
i hope anyone could help me with this

if you are going to use lists on c# first you can read some reference here: www.dotnetperls.com

ok so in order to use list that script that’s going to interact with the list firstly and foremoremost you need the namespace so all the way on top you need

using Sytem.Collections.Generic;

now a list is written like this: public List nameofthelist = new List();
example: public List<GameObject> players = new List<GameObject>();

now to add to is you would use the .add function and to read from a list you normally need a forloop or a for each
example reading lists

foreach(GameObject go in players)
{
go.name = "Player";

}

thank you!
but how can i use that with multiple variables in a list?

I have that working now. but how can i get de name of list, that i have added in the unity editor.