3
/base 용 RestExtension을 쓰고 있습니다. 나는 다음과 같은 코드가 있습니다Umbraco/base 용 확장자
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using umbraco.presentation.umbracobase;
using umbraco.NodeFactory;
namespace ElkeslasiBase
{
[RestExtension("Collections")]
public class Collection
{
[RestExtensionMethod()]
public static string GetCollection(string collectionID)
{
var currentNode = Node.GetCurrent();
var SelectedCollection = currentNode.ChildrenAsList.Where(elm => elm.Name == collectionID);
return collectionID;
}
}
}
문제는 컴파일러가 람다 식에 대한 오류를 던졌습니다입니다.
Delegate 'System.Func<umbraco.interfaces.INode,int,bool>' does not take 1 argument
Google에서 주위를 파고들에서, 나는 이것을 정확히하는 사람들을 발견했습니다. 어쩌면 참조가 누락 된 것일까 요? 아니면 다른 뭔가?
이 잘
내 인생 3 시간 내가 돌아올 수 없을거야있어...! 자신의 답을 해결책으로 표시해야합니다. – Jonathan