Skip to content

Commit 0835f37

Browse files
committed
Simplify code of the ExecutableProvider class
1 parent dd5f3af commit 0835f37

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

Orm/Xtensive.Orm/Orm/Rse/Providers/ExecutableProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2008-2020 Xtensive LLC.
1+
// Copyright (C) 2008-2022 Xtensive LLC.
22
// This code is distributed under MIT license terms.
33
// See the License.txt file in the project root for more information.
44
// Created by: Alexey Kochetov
@@ -23,7 +23,7 @@ public abstract class ExecutableProvider : Provider
2323
/// <summary>
2424
/// Gets the provider this provider is compiled from.
2525
/// </summary>
26-
public CompilableProvider Origin { get; private set; }
26+
public CompilableProvider Origin { get; }
2727

2828

2929
#region OnXxxEnumerate methods (to override)

Orm/Xtensive.Orm/Orm/Rse/Providers/ExecutableProvider{TOrigin}.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2008-2022 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44
// Created by: Alex Yakunin
55
// Created: 2008.08.13
66

@@ -20,10 +20,7 @@ public abstract class ExecutableProvider<TOrigin> : ExecutableProvider
2020
/// <summary>
2121
/// Gets the provider this provider is compiled from.
2222
/// </summary>
23-
public new TOrigin Origin {
24-
get { return (TOrigin) base.Origin; }
25-
}
26-
23+
public new TOrigin Origin => (TOrigin) base.Origin;
2724

2825
// Constructors
2926

0 commit comments

Comments
 (0)