Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to return array in function c#

static string[] GetNames()
        {
            return new [] { "Matthew", "Mark", "Luke", "John" };
            
        }
Comment

return array in c#

public static string[] Person_Info(string firstname, string middlename, string lastname, string age, string birthdate)
        {
            return new[]
            {
            firstname,
            middlename,
            lastname,
            age,
            birthdate
            };
        }
Comment

PREVIOUS NEXT
Code Example
Csharp :: partial mvc 
Csharp :: Prime number Upto n 
Csharp :: set main camera unity 
Csharp :: index in foreach in c# 
Csharp :: unity bool to int 
Csharp :: c# convert string to datetime 
Csharp :: c# only only 2 digits after decimal number double 
Csharp :: qrcode c# 
Csharp :: unity in app review 
Csharp :: c# exists in list 
Csharp :: run async method parallel c# 
Csharp :: c# for loop last iteration 
Csharp :: how to check if a number is prime or not c# 
Csharp :: Task w = Task.Delay(600);w.Wait();new Program().Start(); 
Csharp :: how to dynamically load value in startup file in c# 
Csharp :: _swapbatch.foreach multiple statements c# 
Csharp :: string to date 
Html :: font awesome icon for email 
Html :: how to open link in new tab 
Html :: flutter build web html 
Html :: html bootstrap textarea 
Html :: refresh button html 
Html :: svg content_type 
Html :: commnet in html 
Html :: html shell 
Html :: html how to display something on mobile and another on desktop 
Html :: how to add a description to a table html 
Html :: a href type submit 
Html :: html textarea 
Html :: youtube iframe autoplay not working 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =