.NET Fiddle

CSharp · Console

/Program.cs

using System;
using System.Collections.Generic;

public class Program
{
	public static void Main()
	{
		List<object> allhuman = new List<object>{null, null, 1};
		for (int i = 0; i < allhuman.Count; i++)
		{
			if (allhuman[i] == null)
			{
				allhuman.RemoveAt(i);
			}
		}

		allhuman.ForEach(x => Console.WriteLine(x ?? "null"));
	}
}
;