Exemple #1
0
 /// <summary>
 /// Load the methods of the class.
 /// </summary>
 public Task <DalvikMemberList <MethodId, DalvikMethod> > GetMethodsAsync()
 {
     if (methods != null)
     {
         return(methods.AsTask());
     }
     return(Debugger.ReferenceType.MethodsAsync(Id).Select(t => new DalvikMemberList <MethodId, DalvikMethod>(t.Select(CreateMethod), x => x.Id)).SaveAndReturn(x => methods = x));
 }
Exemple #2
0
 /// <summary>
 /// Load the fields of the class.
 /// </summary>
 public Task <DalvikMemberList <FieldId, DalvikField> > GetFieldsAsync()
 {
     if (fields != null)
     {
         return(fields.AsTask());
     }
     return(Debugger.ReferenceType.FieldsAsync(Id).Select(t => new DalvikMemberList <FieldId, DalvikField>(t.Select(CreateField), x => x.Id)).SaveAndReturn(x => fields = x));
 }