2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-09-13 20:43:19 +00:00
This commit is contained in:
2025-08-24 02:11:50 +03:00
parent 0d4ea04ef4
commit b12939e109
8 changed files with 149 additions and 79 deletions

View File

@@ -782,15 +782,15 @@ public class Instance
return new AsyncBag<T>(null);
}
public AsyncReply<T> Parent<T>(string name = null) where T : IResource
public AsyncBag<T> Parents<T>(string name = null) where T : IResource
{
IResource res;
if (this.resource.TryGetTarget(out res))
{
return store.Parent<T>(res, name);
return store.Parents<T>(res, name);
}
else
return new AsyncReply<T>(default(T));
return new AsyncBag<T>(default(T[]));
}
/*