Skip to content

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
burcuq committed Jun 29, 2024
1 parent 5e73e0e commit c40c740
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public LookupFilteringAttribute(string lookupKey)
public LookupFilteringAttribute(Type lookupType)
: base(Key)
{
var attr = lookupType.GetCustomAttribute<LookupScriptAttribute>(false) ?? throw new ArgumentOutOfRangeException("lookupType");// Burada lookupType tipinin LookupScript adlı özel bir attribute içerip içermediğini kontrol ediyoruz (false parametresi bu özelliğin kalıtım yoluyla aranmayacağını sadece LookUpscrptAttirbute de olması gerektğni söyler) ?? bu ifade sol tarafındaki ifadenin null olup olmadığını kontrol eder, Eğer sol taraf null ise sağ taraftaki kodu döndürür.lookupType tipi üzerinde LookupScriptAttribute bulunamazsa veya null dönerse, ArgumentOutOfRangeException istisnası fırlatılır. Bu istisna, genellikle bir parametrenin geçersiz bir değere sahip olduğunu veya beklenen bir özelliği karşılamadığını belirtir.
var attr = lookupType.GetCustomAttribute<LookupScriptAttribute>(false) ?? throw new ArgumentOutOfRangeException("lookupType");
SetOption("lookupKey", attr.Key ??
LookupScriptAttribute.AutoLookupKeyFor(lookupType));
}
Expand Down

0 comments on commit c40c740

Please sign in to comment.