System.Net.SocketPermission.FindSubset C# (CSharp) Method

FindSubset() private method

private FindSubset ( ArrayList source, ArrayList target ) : bool
source ArrayList
target ArrayList
return bool
        private bool FindSubset(ArrayList source, ArrayList target) {
            foreach (EndpointPermission e in source) {

                bool found = false;

                foreach (EndpointPermission ee in target) {
                    if (e.SubsetMatch(ee)) {
                        found = true;
                        break;
                    }
                }
                if (!found) {
                    return false;
                }
            }
            return true;
        }