• 24-07-2019, 09:36:12
    #1
    asda>Model(klasör adı)>Products.cs

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    namespace asda.Model
    {
    class Products
    {
    
    public class auth
    {
    public string appKey { get; set; }
    public string appSecret { get; set; }
    }
    public class pagingData
    {
    public int currentPage { get; set; }
    public int pageSize { get; set; }
    public int totalCount { get; set; }
    public int pageCount { get; set; }
    }
    
    }
    }
    asda>Classes.cs

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using asda.Model;
    
    namespace asda.Model
    {
    
    
    class Classes
    {
    
    
    
    class GetCategoryAttributesRequest
    {
    
    
    }
    
    }
    }
    Benim istediğim şey ise "GetCategoryAttributesRequest" in içine Products.cs içerisinde bulunan auth classının değişkenlerini çekmek(appKey ve appSecret)


    Not:Konuyu nerde açacağımı bilemedim o yüzden burada açtım,mod'lar uygun bir yere taşırsa sevinirim
  • 24-07-2019, 09:56:09
    #2
    Direkt instance başlatıp çekerseniz muhtemelen veri boş gelir. Nesnenin instancesinden çekmeniz gerek nerede başlatılıyorsa
  • 24-07-2019, 10:23:00
    #3
    CihanAksoy adlı üyeden alıntı: mesajı görüntüle
    Direkt instance başlatıp çekerseniz muhtemelen veri boş gelir. Nesnenin instancesinden çekmeniz gerek nerede başlatılıyorsa
    nasıl?