Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
using System.Collections.Generic;
using System.Linq;
namespace ICSharpCode.Decompiler.CSharp.Syntax;
public static class SimpleMemoryMethodDeclarationExtensions
{
public static string GetSimpleMemoryParameterName(this MethodDeclaration method) =>
method.Parameters.SingleOrDefault(parameter => parameter.IsSimpleMemoryParameter())?.Name;
public static IEnumerable<ParameterDeclaration> GetNonSimpleMemoryParameters(this MethodDeclaration method) =>
method.Parameters.Where(p => !p.IsSimpleMemoryParameter());
}
d5761c07cThis file is pinned to the selected release. Download the original to open it in your design tool.