Skip to content

Commit

Permalink
Add copyright to WinRT sources (#1049)
Browse files Browse the repository at this point in the history
* copyright

* dictionary
  • Loading branch information
j0shuams authored Nov 18, 2021
1 parent e4fa105 commit f8d506b
Show file tree
Hide file tree
Showing 83 changed files with 294 additions and 184 deletions.
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/AgileReference.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.InteropServices;
using WinRT.Interop;

Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/Attributes.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.ComponentModel;

namespace WinRT
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/CastExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Reflection;
using WinRT.Interop;

Expand Down
3 changes: 3 additions & 0 deletions src/WinRT.Runtime/ComWrappersSupport.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using ABI.Microsoft.UI.Xaml.Data;
using ABI.Windows.Foundation;
using System;
Expand Down
6 changes: 4 additions & 2 deletions src/WinRT.Runtime/ComWrappersSupport.net5.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using WinRT.Interop;
using static System.Runtime.InteropServices.ComWrappers;

Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/ComWrappersSupport.netstandard2.0.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq.Expressions;
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/Context.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.InteropServices;
using WinRT.Interop;

Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/DerivedComposed.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System.ComponentModel;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.ComponentModel;

namespace WinRT
{
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/EventRegistrationToken.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;

namespace WinRT
{
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/ExceptionHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections;
using System.Runtime.ExceptionServices;
using System.Runtime.InteropServices;
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/FundamentalMarshalers.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;

namespace ABI.System
{
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/GuidGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Linq;
using System.Reflection;
using System.Security.Cryptography;
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/IInspectable.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.InteropServices;
using WinRT.Interop;

Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/IInspectable.net5.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Concurrent;

namespace WinRT
Expand Down
3 changes: 3 additions & 0 deletions src/WinRT.Runtime/IWinRTObject.net5.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/Interop/ExceptionErrorInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// This file was generated by cswinrt.exe
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

// This file was generated by cswinrt.exe
using System;
using System.Collections;
using System.Collections.Concurrent;
Expand Down
7 changes: 4 additions & 3 deletions src/WinRT.Runtime/Interop/IActivationFactory.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System;
using System.Collections.Generic;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using WinRT;

namespace WinRT.Interop
Expand Down
8 changes: 4 additions & 4 deletions src/WinRT.Runtime/Interop/IAgileReference.net5.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using System.Collections.Generic;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.InteropServices;
using System.Text;

namespace WinRT.Interop
{
Expand Down Expand Up @@ -37,7 +38,6 @@ internal interface IGlobalInterfaceTable
namespace ABI.WinRT.Interop
{
using global::WinRT;
using WinRT.Interop;

[DynamicInterfaceCastableImplementation]
[Guid("C03F6A43-65A4-9818-987E-E0B810D2A6F2")]
Expand Down
8 changes: 4 additions & 4 deletions src/WinRT.Runtime/Interop/IAgileReference.netstandard2.0.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using System.Collections.Generic;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.InteropServices;
using System.Text;

namespace WinRT.Interop
{
Expand Down Expand Up @@ -36,7 +37,6 @@ internal interface IGlobalInterfaceTable
namespace ABI.WinRT.Interop
{
using global::WinRT;
using WinRT.Interop;

[Guid("C03F6A43-65A4-9818-987E-E0B810D2A6F2")]
internal unsafe class IAgileReference : global::WinRT.Interop.IAgileReference
Expand Down
7 changes: 4 additions & 3 deletions src/WinRT.Runtime/Interop/IContextCallback.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using System.Collections.Generic;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.InteropServices;
using System.Text;
using WinRT;
using WinRT.Interop;

Expand Down
3 changes: 3 additions & 0 deletions src/WinRT.Runtime/Interop/IMarshal.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/Interop/IReferenceTracker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.InteropServices;

namespace WinRT.Interop
Expand Down
7 changes: 4 additions & 3 deletions src/WinRT.Runtime/Interop/IUnknownVftbl.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using System.Collections.Generic;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.InteropServices;
using System.Text;

namespace WinRT.Interop
{
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/Interop/IWeakReferenceSource.net5.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using global::WinRT;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using System.Collections.Generic;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.InteropServices;
using System.Text;

namespace WinRT.Interop
{
Expand Down Expand Up @@ -53,7 +54,6 @@ public IObjectReference Resolve(Guid riid)
namespace ABI.WinRT.Interop
{
using global::WinRT;
using WinRT.Interop;

[Guid("00000038-0000-0000-C000-000000000046")]
internal unsafe class IWeakReferenceSource : global::WinRT.Interop.IWeakReferenceSource
Expand Down
7 changes: 4 additions & 3 deletions src/WinRT.Runtime/Interop/StandardDelegates.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using System.Collections.Generic;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.ComponentModel;
using System.Text;

namespace WinRT.Interop
{
Expand Down
3 changes: 3 additions & 0 deletions src/WinRT.Runtime/Marshalers.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Diagnostics;
using System.Linq.Expressions;
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/Module.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#if NET
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#if NET
[assembly: global::System.Runtime.Versioning.SupportedOSPlatform("Windows")]
#endif
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/MonoSupport.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;

Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/ObjectReference.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Concurrent;
using System.Reflection;
using System.Runtime.CompilerServices;
Expand Down
3 changes: 3 additions & 0 deletions src/WinRT.Runtime/Projections.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections;
using System.Collections.Concurrent;
Expand Down
10 changes: 4 additions & 6 deletions src/WinRT.Runtime/Projections/Bindable.net5.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.InteropServices;
using Microsoft.UI.Xaml.Interop;
using WinRT;
using WinRT.Interop;


#pragma warning disable 0169 // warning CS0169: The field '...' is never used
Expand Down Expand Up @@ -414,9 +412,9 @@ internal static class IBindableVectorView_Delegates

namespace ABI.System.Collections
{
using global::Microsoft.UI.Xaml.Interop;
using global::System;
using global::System.Runtime.CompilerServices;
using global::Microsoft.UI.Xaml.Interop;

[DynamicInterfaceCastableImplementation]
[Guid("036D2C08-DF29-41AF-8AA2-D774BE62BA6F")]
Expand Down
11 changes: 4 additions & 7 deletions src/WinRT.Runtime/Projections/Bindable.netstandard2.0.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.InteropServices;
using Microsoft.UI.Xaml.Interop;
using WinRT;
using WinRT.Interop;


#pragma warning disable 0169 // warning CS0169: The field '...' is never used
Expand Down Expand Up @@ -403,9 +400,9 @@ internal static class IBindableVectorView_Delegates

namespace ABI.System.Collections
{
using global::Microsoft.UI.Xaml.Interop;
using global::System;
using global::System.Runtime.CompilerServices;
using global::Microsoft.UI.Xaml.Interop;

[global::WinRT.ObjectReferenceWrapper(nameof(_obj))]
[Guid("036D2C08-DF29-41AF-8AA2-D774BE62BA6F")]
Expand Down
5 changes: 4 additions & 1 deletion src/WinRT.Runtime/Projections/CollectionHybrid.net5.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections;
using System.Runtime.InteropServices;
using WinRT;
Expand Down
Loading

0 comments on commit f8d506b

Please sign in to comment.