© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
64 replies
dankmememachine

❔ How to call a method that uses a struct in it's definition?

I program in C# with Unity most-often, I am branching out to 'normal' C# and am stuck on connecting a method to main in a practice project.
public struct sInformation
public struct sInformation
is used to define this method:
sInformation oIncome(int[] aoItemList, float[] aoItemCosts)
sInformation oIncome(int[] aoItemList, float[] aoItemCosts)
and I cannot find a way to run this in Main to actually begin working out the results. Any help would be greatly appreciated!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

how to call a method that is in another file in c#?
C#CC# / help
4y ago
Method uses
C#CC# / help
2y ago
❔ Generic method that takes in a struct and calls the correctly-typed method
C#CC# / help
4y ago
how to call another method
C#CC# / help
2y ago