Skip to content

Commit

Permalink
fixes after .Net Core 3
Browse files Browse the repository at this point in the history
  • Loading branch information
olmobrutall committed Sep 25, 2019
1 parent 59050df commit b66350f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Signum.Entities/DynamicQuery/ResultTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ internal ResultRow(int index, ResultTable table)

public Lite<Entity> Entity
{
get { return (Lite<Entity>)Table.entityColumn!.Values[Index]; }
get { return (Lite<Entity>)Table.entityColumn!.Values[Index]!; }
}

public Lite<Entity>? TryEntity
Expand Down
2 changes: 1 addition & 1 deletion Signum.Utilities/Csv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public static T ReadLine<T>(string csvLine, CultureInfo? culture = null, CsvRead
}
else
{
var list = (IList)Activator.CreateInstance(member.MemberInfo.ReturningType());
var list = (IList)Activator.CreateInstance(member.MemberInfo.ReturningType())!;

for (int j = i; j < vals.Count; j++)
{
Expand Down
2 changes: 1 addition & 1 deletion Signum.Utilities/ExpressionExpanderAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static void ReplaceExpressionUntyped(MemberInfo methodOrProperty, LambdaE
if (attr == null)
throw new InvalidOperationException($"The member {methodOrProperty.Name} has not {nameof(ExpressionFieldAttribute)}");

var fi = methodOrProperty.DeclaringType.GetField(attr.Name, BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
var fi = methodOrProperty.DeclaringType!.GetField(attr.Name, BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic)!;

fi.SetValue(null, newExpression);
}
Expand Down

0 comments on commit b66350f

Please sign in to comment.