Recurity.Swf.SwfFile.GetCharacterByID C# (CSharp) Method

GetCharacterByID() public method

public GetCharacterByID ( UInt16 charID ) : AbstractTagHandler
charID System.UInt16
return Recurity.Swf.TagHandler.AbstractTagHandler
        public TagHandler.AbstractTagHandler GetCharacterByID(UInt16 charID)
        {
            for (int i = 0; i < this.TagHandlers.Count; i++)
            {
                if (this.TagHandlers[i] is Recurity.Swf.Helper.ISwfCharacter)
                {
                    Recurity.Swf.Helper.ISwfCharacter character = (Recurity.Swf.Helper.ISwfCharacter)this.TagHandlers[i];

                    if (character.CharacterID.Equals(charID))
                    {
                        return TagHandlers[i];
                    }
                }
            }

            return null;
        }