Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
</PropertyGroup>
Expand Down Expand Up @@ -168,7 +168,6 @@
<Compile Include="System\Collections\Generic\ArraySortHelper.NativeAot.cs" />
<Compile Include="System\Collections\Generic\Comparer.NativeAot.cs" />
<Compile Include="System\Collections\Generic\EqualityComparer.NativeAot.cs" />
<Compile Include="System\Collections\Generic\EqualOnlyComparer.cs" />
<Compile Include="System\InvokeUtils.cs" />
<Compile Include="System\IO\FileLoadException.NativeAot.cs" />
<Compile Include="System\IO\Stream.NativeAot.cs" />
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,5 @@ public static IEnumerable<T> Where<T>(this IEnumerable<T> source, Func<T, bool>
yield return value;
}
}

public static IEnumerable<T> AsEnumerable<T>(this IEnumerable<T> source)
{
Debug.Assert(source != null);
return source;
}

public static int Count<T>(this IEnumerable<T> enumeration)
{
Debug.Assert(enumeration != null);

var collection = enumeration as ICollection<T>;
if (collection != null)
return collection.Count;

int i = 0;
foreach (T element in enumeration)
{
i++;
}

return i;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<AssemblyName>ILCompiler.MetadataTransform</AssemblyName>
Expand Down Expand Up @@ -27,7 +27,6 @@
</ItemGroup>
<ItemGroup>
<Compile Include="$(CommonSourcePath)Internal\LowLevelLinq\LowLevelEnumerable.cs" />
<Compile Include="$(CommonSourcePath)Internal\LowLevelLinq\LowLevelEnumerable.ToList.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(NativeFormatCommonPath)\NativeFormat.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public partial class ConstantBooleanArray
{
public override string ToString()
{
//return "ConstantBooleanArray : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(Boolean[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantBooleanArray : {" + String.Join(", ", this.Value) + "}";
return "(Boolean[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantCharValue
Expand All @@ -36,8 +36,8 @@ public partial class ConstantCharArray
{
public override string ToString()
{
//return "ConstantCharArray : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(Char[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantCharArray : {" + String.Join(", ", this.Value) + "}";
return "(Char[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantStringValue
Expand All @@ -54,8 +54,8 @@ public partial class ConstantStringArray
{
public override string ToString()
{
//return "ConstantStringArray : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(String[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantStringArray : {" + String.Join(", ", this.Value) + "}";
return "(String[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantByteValue
Expand All @@ -71,8 +71,8 @@ public partial class ConstantByteArray
{
public override string ToString()
{
//return "ConstantByteArray : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(Byte[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantByteArray : {" + String.Join(", ", this.Value) + "}";
return "(Byte[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantSByteValue
Expand All @@ -88,8 +88,8 @@ public partial class ConstantSByteArray
{
public override string ToString()
{
//return "ConstantSByteArray : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(SByte[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantSByteArray : {" + String.Join(", ", this.Value) + "}";
return "(SByte[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantInt16Value
Expand All @@ -105,8 +105,8 @@ public partial class ConstantInt16Array
{
public override string ToString()
{
//return "ConstantInt16Array : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(Int16[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantInt16Array : {" + String.Join(", ", this.Value) + "}";
return "(Int16[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantUInt16Value
Expand All @@ -122,8 +122,8 @@ public partial class ConstantUInt16Array
{
public override string ToString()
{
//return "ConstantUInt16Array : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(UInt16[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantUInt16Array : {" + String.Join(", ", this.Value) + "}";
return "(UInt16[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantInt32Value
Expand All @@ -139,8 +139,8 @@ public partial class ConstantInt32Array
{
public override string ToString()
{
//return "ConstantInt32Array : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(Int32[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantInt32Array : {" + String.Join(", ", this.Value) + "}";
return "(Int32[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantUInt32Value
Expand All @@ -156,8 +156,8 @@ public partial class ConstantUInt32Array
{
public override string ToString()
{
//return "ConstantUInt32Array : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(UInt32[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantUInt32Array : {" + String.Join(", ", this.Value) + "}";
return "(UInt32[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantInt64Value
Expand All @@ -173,8 +173,8 @@ public partial class ConstantInt64Array
{
public override string ToString()
{
//return "ConstantInt64Array : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(Int64[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantInt64Array : {" + String.Join(", ", this.Value) + "}";
return "(Int64[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantUInt64Value
Expand All @@ -190,8 +190,8 @@ public partial class ConstantUInt64Array
{
public override string ToString()
{
//return "ConstantUInt64Array : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(UInt64[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantUInt64Array : {" + String.Join(", ", this.Value) + "}";
return "(UInt64[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantSingleValue
Expand All @@ -207,8 +207,8 @@ public partial class ConstantSingleArray
{
public override string ToString()
{
//return "ConstantSingleArray : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(Single[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantSingleArray : {" + String.Join(", ", this.Value) + "}";
return "(Single[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantDoubleValue
Expand All @@ -224,8 +224,8 @@ public partial class ConstantDoubleArray
{
public override string ToString()
{
//return "ConstantDoubleArray : {" + String.Join(", ", this.Value.Select(v => v.ToString())) + "}";
return "(Double[]) {" + string.Join(", ", this.Value.Select(v => v.ToString())) + "}";
//return "ConstantDoubleArray : {" + String.Join(", ", this.Value) + "}";
return "(Double[]) {" + string.Join(", ", this.Value) + "}";
}
}
public partial class ConstantReferenceValue
Expand Down
Loading
Loading