Shapefile.Shape.GetMetadataNames C# (CSharp) Method

GetMetadataNames() public method

Gets an array of valid metadata names (keys) for this shape. Returns null if not metadata exists.
public GetMetadataNames ( ) : string[]
return string[]
        public string[] GetMetadataNames()
        {
            if ((_metadata != null) && (_metadata.Keys.Count > 0))
            {
                List<string> names = new List<string>(_metadata.Keys.Count);
                foreach (string key in _metadata.Keys)
                {
                    names.Add(key);
                }
                return names.ToArray();
            }
            else
            {
                return null;
            }
        }