Home > Net >  Is there any way you can use other assemblies in internal struct?
Is there any way you can use other assemblies in internal struct?

Time:11-21

Good god, I am a beginner novice, just learn how to use reflection calls private fields, methods, and now want to call the following in your own class this code in other assemblies () in the "categoryData" variable, but because of "categoryData" is defined as "ItemData" type, "ItemData" is an internal struct, not directly use in my code, so there is nothing want to consult method can solve the problem (in the case of not change its content of the assembly)?
 internal void UpdateStores () 
{
Enclosing ClearStores ();
Foreach (ItemRosterElement ItemRosterElement in this. _town. Owner. ItemRoster)
{
ItemData categoryData=https://bbs.csdn.net/topics/this.GetCategoryData (itemRosterElement. EquipmentElement. Item. GetItemCategory ());
Enclosing SetItemData (itemRosterElement EquipmentElement. Item. GetItemCategory (), categoryData. AddInStore (itemRosterElement. Amount, itemRosterElement. EquipmentElement. Item. Value));
}
}
  •  Tags:  
  • C#
  • Related