diff --git a/Utilities/ByteUtils/BigEndianReader.cs b/Utilities/ByteUtils/BigEndianReader.cs index 640e9f9..ff3e091 100644 --- a/Utilities/ByteUtils/BigEndianReader.cs +++ b/Utilities/ByteUtils/BigEndianReader.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2012-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.IO; diff --git a/Utilities/ByteUtils/BigEndianWriter.cs b/Utilities/ByteUtils/BigEndianWriter.cs index 9769887..e3add0a 100644 --- a/Utilities/ByteUtils/BigEndianWriter.cs +++ b/Utilities/ByteUtils/BigEndianWriter.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2012-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.IO; diff --git a/Utilities/ByteUtils/ByteReader.cs b/Utilities/ByteUtils/ByteReader.cs index 728c54c..3aedc2c 100644 --- a/Utilities/ByteUtils/ByteReader.cs +++ b/Utilities/ByteUtils/ByteReader.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2012-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.IO; using System.Text; diff --git a/Utilities/ByteUtils/ByteUtils.cs b/Utilities/ByteUtils/ByteUtils.cs index 82e94a6..acb32f1 100644 --- a/Utilities/ByteUtils/ByteUtils.cs +++ b/Utilities/ByteUtils/ByteUtils.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2012-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.IO; diff --git a/Utilities/ByteUtils/ByteWriter.cs b/Utilities/ByteUtils/ByteWriter.cs index 54715b3..4f2d1a0 100644 --- a/Utilities/ByteUtils/ByteWriter.cs +++ b/Utilities/ByteUtils/ByteWriter.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2012-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.IO; using System.Text; diff --git a/Utilities/ByteUtils/LittleEndianReader.cs b/Utilities/ByteUtils/LittleEndianReader.cs index ff8aca6..7b1b913 100644 --- a/Utilities/ByteUtils/LittleEndianReader.cs +++ b/Utilities/ByteUtils/LittleEndianReader.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2012-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.IO; diff --git a/Utilities/ByteUtils/LittleEndianWriter.cs b/Utilities/ByteUtils/LittleEndianWriter.cs index ac646d9..4816e78 100644 --- a/Utilities/ByteUtils/LittleEndianWriter.cs +++ b/Utilities/ByteUtils/LittleEndianWriter.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2012-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.IO; diff --git a/Utilities/Comparers/ReverseComparer.cs b/Utilities/Comparers/ReverseComparer.cs index 3829fa8..c0440cd 100644 --- a/Utilities/Comparers/ReverseComparer.cs +++ b/Utilities/Comparers/ReverseComparer.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2005-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections.Generic; diff --git a/Utilities/Conversion/BigEndianConverter.cs b/Utilities/Conversion/BigEndianConverter.cs index d6f085b..4560e7b 100644 --- a/Utilities/Conversion/BigEndianConverter.cs +++ b/Utilities/Conversion/BigEndianConverter.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2012-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections.Generic; diff --git a/Utilities/Conversion/Conversion.SimpleTypes.cs b/Utilities/Conversion/Conversion.SimpleTypes.cs index 042c16e..e52d5fa 100644 --- a/Utilities/Conversion/Conversion.SimpleTypes.cs +++ b/Utilities/Conversion/Conversion.SimpleTypes.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2005-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; namespace Utilities diff --git a/Utilities/Conversion/LittleEndianConverter.cs b/Utilities/Conversion/LittleEndianConverter.cs index 0326724..bb494de 100644 --- a/Utilities/Conversion/LittleEndianConverter.cs +++ b/Utilities/Conversion/LittleEndianConverter.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2012-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections.Generic; diff --git a/Utilities/Cryptography/CRC32.cs b/Utilities/Cryptography/CRC32.cs index c909b2e..eef587d 100644 --- a/Utilities/Cryptography/CRC32.cs +++ b/Utilities/Cryptography/CRC32.cs @@ -1,10 +1,11 @@ +/* Author: Damien Guard (damieng@gmail.com) + * http://damieng.com/blog/2006/08/08/calculating_crc32_in_c_and_net + */ using System; using System.Security.Cryptography; namespace Utilities { - // Author: Damien Guard (damieng@gmail.com) - // http://damieng.com/blog/2006/08/08/calculating_crc32_in_c_and_net public class CRC32 : HashAlgorithm { public const UInt32 DefaultPolynomial = 0xedb88320; diff --git a/Utilities/Generics/BlockingQueue.cs b/Utilities/Generics/BlockingQueue.cs index 13873d8..9329114 100644 --- a/Utilities/Generics/BlockingQueue.cs +++ b/Utilities/Generics/BlockingQueue.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2016-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections.Generic; using System.Threading; diff --git a/Utilities/Generics/KeyValuePairList.cs b/Utilities/Generics/KeyValuePairList.cs index fc5f093..2d215e1 100644 --- a/Utilities/Generics/KeyValuePairList.cs +++ b/Utilities/Generics/KeyValuePairList.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2012-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections.Generic; using System.ComponentModel; diff --git a/Utilities/Generics/Map.cs b/Utilities/Generics/Map.cs index 98f0c34..acf3d95 100644 --- a/Utilities/Generics/Map.cs +++ b/Utilities/Generics/Map.cs @@ -1,13 +1,18 @@ +/* Copyright (C) 2014-2020 Tal Aloni . All rights reserved. + * + * Based on: + * http://stackoverflow.com/questions/10966331/two-way-bidirectional-dictionary-in-c + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections.Generic; using System.Text; namespace Utilities { - /// - /// Based on: - /// http://stackoverflow.com/questions/10966331/two-way-bidirectional-dictionary-in-c - /// public class Map { private Dictionary m_forward = new Dictionary(); diff --git a/Utilities/Generics/Reference.cs b/Utilities/Generics/Reference.cs index 4698a2b..e703e1b 100644 --- a/Utilities/Generics/Reference.cs +++ b/Utilities/Generics/Reference.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2017-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections.Generic; diff --git a/Utilities/Generics/SortedList.cs b/Utilities/Generics/SortedList.cs index 492b431..b353c0d 100644 --- a/Utilities/Generics/SortedList.cs +++ b/Utilities/Generics/SortedList.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2016-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections; using System.Collections.Generic; diff --git a/Utilities/IFileSystem/FileSystem.cs b/Utilities/IFileSystem/FileSystem.cs index 897eddc..73b0f51 100644 --- a/Utilities/IFileSystem/FileSystem.cs +++ b/Utilities/IFileSystem/FileSystem.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2014-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections.Generic; using System.IO; diff --git a/Utilities/IFileSystem/FileSystemEntry.cs b/Utilities/IFileSystem/FileSystemEntry.cs index 59e1d8b..7acce05 100644 --- a/Utilities/IFileSystem/FileSystemEntry.cs +++ b/Utilities/IFileSystem/FileSystemEntry.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2014-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections.Generic; using System.IO; diff --git a/Utilities/IFileSystem/IFileSystem.cs b/Utilities/IFileSystem/IFileSystem.cs index 3faf811..bf83fed 100644 --- a/Utilities/IFileSystem/IFileSystem.cs +++ b/Utilities/IFileSystem/IFileSystem.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2014-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections.Generic; using System.IO; diff --git a/Utilities/Strings/QuotedStringUtils.cs b/Utilities/Strings/QuotedStringUtils.cs index f9663f7..b509cad 100644 --- a/Utilities/Strings/QuotedStringUtils.cs +++ b/Utilities/Strings/QuotedStringUtils.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2011-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections.Generic; using System.Text; diff --git a/Utilities/Threading/CountdownLatch.cs b/Utilities/Threading/CountdownLatch.cs index de6b9a7..2aaf659 100644 --- a/Utilities/Threading/CountdownLatch.cs +++ b/Utilities/Threading/CountdownLatch.cs @@ -1,3 +1,9 @@ +/* Copyright (C) 2016-2020 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Threading; diff --git a/Utilities/Threading/Parallel.cs b/Utilities/Threading/Parallel.cs index 49acf7f..277ae25 100644 --- a/Utilities/Threading/Parallel.cs +++ b/Utilities/Threading/Parallel.cs @@ -1,3 +1,14 @@ +/* Copyright (C) 2014-2020 Tal Aloni . All rights reserved. + * + * Based on: + * http://coding-time.blogspot.pt/2008/03/implement-your-own-parallelfor-in-c.html + * C# 2.0 adaptation based on: + * http://dotnetgalactics.wordpress.com/2009/11/19/how-to-provide-a-parallel-for-loop-in-c2-0-2/ + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ using System; using System.Collections; using System.Collections.Generic; @@ -9,10 +20,6 @@ namespace Utilities public delegate void ForDelegate(int i); public delegate void DelegateProcess(); - // Based on: - // http://coding-time.blogspot.pt/2008/03/implement-your-own-parallelfor-in-c.html - // C# 2.0 adaptation based on: - // http://dotnetgalactics.wordpress.com/2009/11/19/how-to-provide-a-parallel-for-loop-in-c2-0-2/ public class Parallel { ///