Is there a way I can return more than one integer from a method? [duplicate] Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceHow can I return multiple values from a function in C#?Returning two lists in C#Hidden Features of C#?Randomize a List<T>Best way to repeat a character in C#Proper use of the IDisposable interfaceDoes C# have extension properties?Get int value from enum in C#How do I remedy the “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?Group by in LINQIs there a reason for C#'s reuse of the variable in a foreach?d is less efficient than [0-9]

How to market an anarchic city as a tourism spot to people living in civilized areas?

Replacing HDD with SSD; what about non-APFS/APFS?

I'm having difficulty getting my players to do stuff in a sandbox campaign

How to correctly write regular expression to match ASCII control chars

Slither Like a Snake

Problem when applying foreach loop

Active filter with series inductor and resistor - do these exist?

If A makes B more likely then B makes A more likely"

Interesting examples of non-locally compact topological groups

Do working physicists consider Newtonian mechanics to be "falsified"?

Why does tar appear to skip file contents when output file is /dev/null?

How does modal jazz use chord progressions?

Does a C shift expression have unsigned type? Why would Splint warn about a right-shift?

What kind of display is this?

Two different pronunciation of "понял"

How to dynamically generate the hash value of a file while it gets downloaded from any website?

Am I ethically obligated to go into work on an off day if the reason is sudden?

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

Classification of bundles, Postnikov towers, obstruction theory, local coefficients

What was Bilhah and Zilpah's ancestry?

Working around an AWS network ACL rule limit

How to say that you spent the night with someone, you were only sleeping and nothing else?

Can the prologue be the backstory of your main character?

How to get single character after space?



Is there a way I can return more than one integer from a method? [duplicate]



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceHow can I return multiple values from a function in C#?Returning two lists in C#Hidden Features of C#?Randomize a List<T>Best way to repeat a character in C#Proper use of the IDisposable interfaceDoes C# have extension properties?Get int value from enum in C#How do I remedy the “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?Group by in LINQIs there a reason for C#'s reuse of the variable in a foreach?d is less efficient than [0-9]



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








21
















This question already has an answer here:



  • How can I return multiple values from a function in C#?

    26 answers



I have a method like this:



private double GetHeight()

return 2;



But I would like to be able to return two different numbers for example 2 and 3. Is there any way that I can do this in C#?










share|improve this question















marked as duplicate by Mormegil, Soner Gönül c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Apr 8 at 12:38


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • return array if you need more values

    – Shubham
    Apr 8 at 8:49






  • 1





    This probably is exactly what you need

    – Jordi
    Apr 8 at 8:51






  • 2





    for clarity: does your method always return the same number of return values (each with specific semantic meaning) - or is the number of return values dynamic, i.e. sometimes it'll be 1 (or maybe even zero), and other times it might be 20? It matters a lot. For the fixed number scenario: any of the tuple-ish answers are good; for the dynamic scenario: the array/list approaches are good.

    – Marc Gravell
    Apr 8 at 9:00







  • 1





    How does this question have so many upvotes? The question lacks a significant amount of effort and a simple search on the internet would've provided the answer stackoverflow.com/help/how-to-ask

    – Denny
    Apr 8 at 12:40


















21
















This question already has an answer here:



  • How can I return multiple values from a function in C#?

    26 answers



I have a method like this:



private double GetHeight()

return 2;



But I would like to be able to return two different numbers for example 2 and 3. Is there any way that I can do this in C#?










share|improve this question















marked as duplicate by Mormegil, Soner Gönül c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Apr 8 at 12:38


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • return array if you need more values

    – Shubham
    Apr 8 at 8:49






  • 1





    This probably is exactly what you need

    – Jordi
    Apr 8 at 8:51






  • 2





    for clarity: does your method always return the same number of return values (each with specific semantic meaning) - or is the number of return values dynamic, i.e. sometimes it'll be 1 (or maybe even zero), and other times it might be 20? It matters a lot. For the fixed number scenario: any of the tuple-ish answers are good; for the dynamic scenario: the array/list approaches are good.

    – Marc Gravell
    Apr 8 at 9:00







  • 1





    How does this question have so many upvotes? The question lacks a significant amount of effort and a simple search on the internet would've provided the answer stackoverflow.com/help/how-to-ask

    – Denny
    Apr 8 at 12:40














21












21








21









This question already has an answer here:



  • How can I return multiple values from a function in C#?

    26 answers



I have a method like this:



private double GetHeight()

return 2;



But I would like to be able to return two different numbers for example 2 and 3. Is there any way that I can do this in C#?










share|improve this question

















This question already has an answer here:



  • How can I return multiple values from a function in C#?

    26 answers



I have a method like this:



private double GetHeight()

return 2;



But I would like to be able to return two different numbers for example 2 and 3. Is there any way that I can do this in C#?





This question already has an answer here:



  • How can I return multiple values from a function in C#?

    26 answers







c#






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 8 at 8:54









Michał Turczyn

16.4k132241




16.4k132241










asked Apr 8 at 8:48









Alan2Alan2

1,82756139278




1,82756139278




marked as duplicate by Mormegil, Soner Gönül c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Apr 8 at 12:38


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by Mormegil, Soner Gönül c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Apr 8 at 12:38


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • return array if you need more values

    – Shubham
    Apr 8 at 8:49






  • 1





    This probably is exactly what you need

    – Jordi
    Apr 8 at 8:51






  • 2





    for clarity: does your method always return the same number of return values (each with specific semantic meaning) - or is the number of return values dynamic, i.e. sometimes it'll be 1 (or maybe even zero), and other times it might be 20? It matters a lot. For the fixed number scenario: any of the tuple-ish answers are good; for the dynamic scenario: the array/list approaches are good.

    – Marc Gravell
    Apr 8 at 9:00







  • 1





    How does this question have so many upvotes? The question lacks a significant amount of effort and a simple search on the internet would've provided the answer stackoverflow.com/help/how-to-ask

    – Denny
    Apr 8 at 12:40


















  • return array if you need more values

    – Shubham
    Apr 8 at 8:49






  • 1





    This probably is exactly what you need

    – Jordi
    Apr 8 at 8:51






  • 2





    for clarity: does your method always return the same number of return values (each with specific semantic meaning) - or is the number of return values dynamic, i.e. sometimes it'll be 1 (or maybe even zero), and other times it might be 20? It matters a lot. For the fixed number scenario: any of the tuple-ish answers are good; for the dynamic scenario: the array/list approaches are good.

    – Marc Gravell
    Apr 8 at 9:00







  • 1





    How does this question have so many upvotes? The question lacks a significant amount of effort and a simple search on the internet would've provided the answer stackoverflow.com/help/how-to-ask

    – Denny
    Apr 8 at 12:40

















return array if you need more values

– Shubham
Apr 8 at 8:49





return array if you need more values

– Shubham
Apr 8 at 8:49




1




1





This probably is exactly what you need

– Jordi
Apr 8 at 8:51





This probably is exactly what you need

– Jordi
Apr 8 at 8:51




2




2





for clarity: does your method always return the same number of return values (each with specific semantic meaning) - or is the number of return values dynamic, i.e. sometimes it'll be 1 (or maybe even zero), and other times it might be 20? It matters a lot. For the fixed number scenario: any of the tuple-ish answers are good; for the dynamic scenario: the array/list approaches are good.

– Marc Gravell
Apr 8 at 9:00






for clarity: does your method always return the same number of return values (each with specific semantic meaning) - or is the number of return values dynamic, i.e. sometimes it'll be 1 (or maybe even zero), and other times it might be 20? It matters a lot. For the fixed number scenario: any of the tuple-ish answers are good; for the dynamic scenario: the array/list approaches are good.

– Marc Gravell
Apr 8 at 9:00





1




1





How does this question have so many upvotes? The question lacks a significant amount of effort and a simple search on the internet would've provided the answer stackoverflow.com/help/how-to-ask

– Denny
Apr 8 at 12:40






How does this question have so many upvotes? The question lacks a significant amount of effort and a simple search on the internet would've provided the answer stackoverflow.com/help/how-to-ask

– Denny
Apr 8 at 12:40













5 Answers
5






active

oldest

votes


















26














Yes ValueTuple / Named Tuple (available in C# 7.1). The advantage is its the most succinct, its immutable, and its easy to construct.




The ValueTuple struct has fields named Item1, Item2, Item3, and so on,
similar to the properties defined in the existing Tuple types.



However, when you initialize a tuple, you can use new language
features that give better names to each field. Doing so creates a
named tuple. Named tuples still have elements named Item1, Item2,
Item3 and so on. But they also have synonyms for any of those elements
that you have named. You create a named tuple by specifying the names
for each element.




private (double first, double second) GetHeight()

return (1,2);


...

var result = ViaNamedValueTuple();
Console.WriteLine($"result.first, result.second");

var (first, second) = ViaNamedValueTuple();
Console.WriteLine($"first, second");


Classic Tuple



C# tuple type




The .NET Framework already has generic Tuple classes. These classes,
however, had two major limitations. For one, the Tuple classes named
their properties Item1, Item2, and so on. Those names carry no
semantic information. Using these Tuple types does not enable
communicating the meaning of each of the properties. The new language
features enable you to declare and use semantically meaningful names
for the elements in a tuple.




public Tuple<int, int> ViaClassicTuple()

return new Tuple<int, int>(1,2);


...

var tuple = ViaClassicTuple();
Console.WriteLine($"tuple.Item1, tuple.Item2");


Classic struct



struct (C# Reference)




A struct type is a value type that is typically used to encapsulate
small groups of related variables, such as the coordinates of a
rectangle or the characteristics of an item in an inventory.




public struct ClassicStruct

public int First get; set;
public int Second get; set;
public ClassicStruct(int first, int second)

First = first;
Second = second;



...

public ClassicStruct ViaClassicStruct()

return new ClassicStruct(1, 2);


...

var classicStruct = ViaClassicStruct();
Console.WriteLine($"classicStruct.First, classicStruct.Second");


Readonly struct



readonly (C# Reference)




The readonly modifier on a struct definition declares that the struct
is immutable. Every instance field of the struct must be marked
readonly, as shown in the following example:




public readonly struct ReadonlyStruct

public int First get;
public int Second get;
public ReadonlyStruct(int first, int second)

First = first;
Second = second;



...

public ReadonlyStruct ViaReadonlyStruct()

return new ReadonlyStruct(1, 2);


...


var readonlyStruct = ViaReadonlyStruct();
Console.WriteLine($"readonlyStruct.First, readonlyStruct.Second");


Simple Class



Classes (C# Programming Guide)




A type that is defined as a class is a reference type. At run time,
when you declare a variable of a reference type, the variable contains
the value null until you explicitly create an instance of the class by
using the new operator, or assign it an object of a compatible type
that may have been created elsewhere




public class SomeClass

public int First get; set;
public int Second get; set;
public SomeClass(int first, int second)

First = first;
Second = second;



...

public SomeClass ViaSomeClass()

return new SomeClass(1, 2);


...


var someClass = ViaSomeClass();
Console.WriteLine($"someClass.First, someClass.Second");


Out parameters



out parameter modifier (C# Reference)




The out keyword causes arguments to be passed by reference. It makes
the formal parameter an alias for the argument, which must be a
variable. In other words, any operation on the parameter is made on
the argument. It is like the ref keyword, except that ref requires
that the variable be initialized before it is passed. It is also like
the in keyword, except that in does not allow the called method to
modify the argument value. To use an out parameter, both the method
definition and the calling method must explicitly use the out keyword.




public bool ViaOutParams(out int first, out int second)

first = 1;
second = 2;
return someCondition;


...

if(ViaOutParams(out var firstInt, out var secondInt))
Console.WriteLine($"firstInt, secondInt");


Out Value Tuple



public bool ViaOutTuple(out (int first,int second) output)

output = (1, 2);
return someCondition;


...

if (ViaOutTuple(out var output))
Console.WriteLine($"output.first, output.second");





share|improve this answer




















  • 1





    Note: Available in C# 7.0 +.

    – Adriani6
    Apr 8 at 8:50











  • Perhaps a struct would be more appropriate than a class, if the intention is to keep value passing.

    – Petter Pettersson
    Apr 11 at 9:57


















21














Multiple ways:




  1. out parameters:



    private double GetHeight(out int anotherValue)

    anotherValue = 42;
    return 2;




  2. value-tuples:



    private (double height, int anotherValue) GetHeight()

    return (42, 2);



    (warning: value-tuples have known problems if used in .NET Standard libraries, as the assembly bindings from .NET Standard to .NET Framework are ... kinda fubar)




  3. custom return types:



    private Something GetHeight()

    return new Something(42, 2);



    (to avoid allocations, you may wish to define Something as a readonly struct in this scenario)







share|improve this answer
































    3














    Yes, you can use Tuple:



    class Program

    static void Main(string[] args)

    Tuple<int, int> height = GetHeight();

    Console.WriteLine(height.Item1 + " - " + height.Item2);
    Console.ReadLine();


    private static Tuple<int, int> GetHeight()

    return new Tuple<int, int>(2, 3);




    OUTPUT:



    2 - 3






    share|improve this answer






























      2














      Also you could use out parameters:



      static void Main(string[] args)

      int i, j;
      GetHeight(out i, out j);


      public static void GetHeight(out int i1, out int i2)

      i1 = 1;
      i2 = 2;






      share|improve this answer






























        0














        Make a int array.Or another way is to create class.






        share|improve this answer

























        • an array is definitely a bad way here - that's pretty allocatey and the semantic meaning of each value is unclear; creating a class would also be relatively allocatey, but... a readonly struct would be fine

          – Marc Gravell
          Apr 8 at 8:51












        • Its not bad but its not needed in current question.

          – Vuk Uskokovic
          Apr 8 at 8:52











        • I'd rather have a class of strongly typed values that mean something rather than guessing how many are in the array and what their values represent

          – Jonesopolis
          Apr 8 at 8:52











        • You can make a list too.

          – Vuk Uskokovic
          Apr 8 at 8:54











        • @VukUskokovic that (list) has all the problems that arrays have, plus an extra object and layer of abstraction; making it a list just exacerbates the problem unless we are semantically returning a list of something

          – Marc Gravell
          Apr 8 at 8:54


















        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        26














        Yes ValueTuple / Named Tuple (available in C# 7.1). The advantage is its the most succinct, its immutable, and its easy to construct.




        The ValueTuple struct has fields named Item1, Item2, Item3, and so on,
        similar to the properties defined in the existing Tuple types.



        However, when you initialize a tuple, you can use new language
        features that give better names to each field. Doing so creates a
        named tuple. Named tuples still have elements named Item1, Item2,
        Item3 and so on. But they also have synonyms for any of those elements
        that you have named. You create a named tuple by specifying the names
        for each element.




        private (double first, double second) GetHeight()

        return (1,2);


        ...

        var result = ViaNamedValueTuple();
        Console.WriteLine($"result.first, result.second");

        var (first, second) = ViaNamedValueTuple();
        Console.WriteLine($"first, second");


        Classic Tuple



        C# tuple type




        The .NET Framework already has generic Tuple classes. These classes,
        however, had two major limitations. For one, the Tuple classes named
        their properties Item1, Item2, and so on. Those names carry no
        semantic information. Using these Tuple types does not enable
        communicating the meaning of each of the properties. The new language
        features enable you to declare and use semantically meaningful names
        for the elements in a tuple.




        public Tuple<int, int> ViaClassicTuple()

        return new Tuple<int, int>(1,2);


        ...

        var tuple = ViaClassicTuple();
        Console.WriteLine($"tuple.Item1, tuple.Item2");


        Classic struct



        struct (C# Reference)




        A struct type is a value type that is typically used to encapsulate
        small groups of related variables, such as the coordinates of a
        rectangle or the characteristics of an item in an inventory.




        public struct ClassicStruct

        public int First get; set;
        public int Second get; set;
        public ClassicStruct(int first, int second)

        First = first;
        Second = second;



        ...

        public ClassicStruct ViaClassicStruct()

        return new ClassicStruct(1, 2);


        ...

        var classicStruct = ViaClassicStruct();
        Console.WriteLine($"classicStruct.First, classicStruct.Second");


        Readonly struct



        readonly (C# Reference)




        The readonly modifier on a struct definition declares that the struct
        is immutable. Every instance field of the struct must be marked
        readonly, as shown in the following example:




        public readonly struct ReadonlyStruct

        public int First get;
        public int Second get;
        public ReadonlyStruct(int first, int second)

        First = first;
        Second = second;



        ...

        public ReadonlyStruct ViaReadonlyStruct()

        return new ReadonlyStruct(1, 2);


        ...


        var readonlyStruct = ViaReadonlyStruct();
        Console.WriteLine($"readonlyStruct.First, readonlyStruct.Second");


        Simple Class



        Classes (C# Programming Guide)




        A type that is defined as a class is a reference type. At run time,
        when you declare a variable of a reference type, the variable contains
        the value null until you explicitly create an instance of the class by
        using the new operator, or assign it an object of a compatible type
        that may have been created elsewhere




        public class SomeClass

        public int First get; set;
        public int Second get; set;
        public SomeClass(int first, int second)

        First = first;
        Second = second;



        ...

        public SomeClass ViaSomeClass()

        return new SomeClass(1, 2);


        ...


        var someClass = ViaSomeClass();
        Console.WriteLine($"someClass.First, someClass.Second");


        Out parameters



        out parameter modifier (C# Reference)




        The out keyword causes arguments to be passed by reference. It makes
        the formal parameter an alias for the argument, which must be a
        variable. In other words, any operation on the parameter is made on
        the argument. It is like the ref keyword, except that ref requires
        that the variable be initialized before it is passed. It is also like
        the in keyword, except that in does not allow the called method to
        modify the argument value. To use an out parameter, both the method
        definition and the calling method must explicitly use the out keyword.




        public bool ViaOutParams(out int first, out int second)

        first = 1;
        second = 2;
        return someCondition;


        ...

        if(ViaOutParams(out var firstInt, out var secondInt))
        Console.WriteLine($"firstInt, secondInt");


        Out Value Tuple



        public bool ViaOutTuple(out (int first,int second) output)

        output = (1, 2);
        return someCondition;


        ...

        if (ViaOutTuple(out var output))
        Console.WriteLine($"output.first, output.second");





        share|improve this answer




















        • 1





          Note: Available in C# 7.0 +.

          – Adriani6
          Apr 8 at 8:50











        • Perhaps a struct would be more appropriate than a class, if the intention is to keep value passing.

          – Petter Pettersson
          Apr 11 at 9:57















        26














        Yes ValueTuple / Named Tuple (available in C# 7.1). The advantage is its the most succinct, its immutable, and its easy to construct.




        The ValueTuple struct has fields named Item1, Item2, Item3, and so on,
        similar to the properties defined in the existing Tuple types.



        However, when you initialize a tuple, you can use new language
        features that give better names to each field. Doing so creates a
        named tuple. Named tuples still have elements named Item1, Item2,
        Item3 and so on. But they also have synonyms for any of those elements
        that you have named. You create a named tuple by specifying the names
        for each element.




        private (double first, double second) GetHeight()

        return (1,2);


        ...

        var result = ViaNamedValueTuple();
        Console.WriteLine($"result.first, result.second");

        var (first, second) = ViaNamedValueTuple();
        Console.WriteLine($"first, second");


        Classic Tuple



        C# tuple type




        The .NET Framework already has generic Tuple classes. These classes,
        however, had two major limitations. For one, the Tuple classes named
        their properties Item1, Item2, and so on. Those names carry no
        semantic information. Using these Tuple types does not enable
        communicating the meaning of each of the properties. The new language
        features enable you to declare and use semantically meaningful names
        for the elements in a tuple.




        public Tuple<int, int> ViaClassicTuple()

        return new Tuple<int, int>(1,2);


        ...

        var tuple = ViaClassicTuple();
        Console.WriteLine($"tuple.Item1, tuple.Item2");


        Classic struct



        struct (C# Reference)




        A struct type is a value type that is typically used to encapsulate
        small groups of related variables, such as the coordinates of a
        rectangle or the characteristics of an item in an inventory.




        public struct ClassicStruct

        public int First get; set;
        public int Second get; set;
        public ClassicStruct(int first, int second)

        First = first;
        Second = second;



        ...

        public ClassicStruct ViaClassicStruct()

        return new ClassicStruct(1, 2);


        ...

        var classicStruct = ViaClassicStruct();
        Console.WriteLine($"classicStruct.First, classicStruct.Second");


        Readonly struct



        readonly (C# Reference)




        The readonly modifier on a struct definition declares that the struct
        is immutable. Every instance field of the struct must be marked
        readonly, as shown in the following example:




        public readonly struct ReadonlyStruct

        public int First get;
        public int Second get;
        public ReadonlyStruct(int first, int second)

        First = first;
        Second = second;



        ...

        public ReadonlyStruct ViaReadonlyStruct()

        return new ReadonlyStruct(1, 2);


        ...


        var readonlyStruct = ViaReadonlyStruct();
        Console.WriteLine($"readonlyStruct.First, readonlyStruct.Second");


        Simple Class



        Classes (C# Programming Guide)




        A type that is defined as a class is a reference type. At run time,
        when you declare a variable of a reference type, the variable contains
        the value null until you explicitly create an instance of the class by
        using the new operator, or assign it an object of a compatible type
        that may have been created elsewhere




        public class SomeClass

        public int First get; set;
        public int Second get; set;
        public SomeClass(int first, int second)

        First = first;
        Second = second;



        ...

        public SomeClass ViaSomeClass()

        return new SomeClass(1, 2);


        ...


        var someClass = ViaSomeClass();
        Console.WriteLine($"someClass.First, someClass.Second");


        Out parameters



        out parameter modifier (C# Reference)




        The out keyword causes arguments to be passed by reference. It makes
        the formal parameter an alias for the argument, which must be a
        variable. In other words, any operation on the parameter is made on
        the argument. It is like the ref keyword, except that ref requires
        that the variable be initialized before it is passed. It is also like
        the in keyword, except that in does not allow the called method to
        modify the argument value. To use an out parameter, both the method
        definition and the calling method must explicitly use the out keyword.




        public bool ViaOutParams(out int first, out int second)

        first = 1;
        second = 2;
        return someCondition;


        ...

        if(ViaOutParams(out var firstInt, out var secondInt))
        Console.WriteLine($"firstInt, secondInt");


        Out Value Tuple



        public bool ViaOutTuple(out (int first,int second) output)

        output = (1, 2);
        return someCondition;


        ...

        if (ViaOutTuple(out var output))
        Console.WriteLine($"output.first, output.second");





        share|improve this answer




















        • 1





          Note: Available in C# 7.0 +.

          – Adriani6
          Apr 8 at 8:50











        • Perhaps a struct would be more appropriate than a class, if the intention is to keep value passing.

          – Petter Pettersson
          Apr 11 at 9:57













        26












        26








        26







        Yes ValueTuple / Named Tuple (available in C# 7.1). The advantage is its the most succinct, its immutable, and its easy to construct.




        The ValueTuple struct has fields named Item1, Item2, Item3, and so on,
        similar to the properties defined in the existing Tuple types.



        However, when you initialize a tuple, you can use new language
        features that give better names to each field. Doing so creates a
        named tuple. Named tuples still have elements named Item1, Item2,
        Item3 and so on. But they also have synonyms for any of those elements
        that you have named. You create a named tuple by specifying the names
        for each element.




        private (double first, double second) GetHeight()

        return (1,2);


        ...

        var result = ViaNamedValueTuple();
        Console.WriteLine($"result.first, result.second");

        var (first, second) = ViaNamedValueTuple();
        Console.WriteLine($"first, second");


        Classic Tuple



        C# tuple type




        The .NET Framework already has generic Tuple classes. These classes,
        however, had two major limitations. For one, the Tuple classes named
        their properties Item1, Item2, and so on. Those names carry no
        semantic information. Using these Tuple types does not enable
        communicating the meaning of each of the properties. The new language
        features enable you to declare and use semantically meaningful names
        for the elements in a tuple.




        public Tuple<int, int> ViaClassicTuple()

        return new Tuple<int, int>(1,2);


        ...

        var tuple = ViaClassicTuple();
        Console.WriteLine($"tuple.Item1, tuple.Item2");


        Classic struct



        struct (C# Reference)




        A struct type is a value type that is typically used to encapsulate
        small groups of related variables, such as the coordinates of a
        rectangle or the characteristics of an item in an inventory.




        public struct ClassicStruct

        public int First get; set;
        public int Second get; set;
        public ClassicStruct(int first, int second)

        First = first;
        Second = second;



        ...

        public ClassicStruct ViaClassicStruct()

        return new ClassicStruct(1, 2);


        ...

        var classicStruct = ViaClassicStruct();
        Console.WriteLine($"classicStruct.First, classicStruct.Second");


        Readonly struct



        readonly (C# Reference)




        The readonly modifier on a struct definition declares that the struct
        is immutable. Every instance field of the struct must be marked
        readonly, as shown in the following example:




        public readonly struct ReadonlyStruct

        public int First get;
        public int Second get;
        public ReadonlyStruct(int first, int second)

        First = first;
        Second = second;



        ...

        public ReadonlyStruct ViaReadonlyStruct()

        return new ReadonlyStruct(1, 2);


        ...


        var readonlyStruct = ViaReadonlyStruct();
        Console.WriteLine($"readonlyStruct.First, readonlyStruct.Second");


        Simple Class



        Classes (C# Programming Guide)




        A type that is defined as a class is a reference type. At run time,
        when you declare a variable of a reference type, the variable contains
        the value null until you explicitly create an instance of the class by
        using the new operator, or assign it an object of a compatible type
        that may have been created elsewhere




        public class SomeClass

        public int First get; set;
        public int Second get; set;
        public SomeClass(int first, int second)

        First = first;
        Second = second;



        ...

        public SomeClass ViaSomeClass()

        return new SomeClass(1, 2);


        ...


        var someClass = ViaSomeClass();
        Console.WriteLine($"someClass.First, someClass.Second");


        Out parameters



        out parameter modifier (C# Reference)




        The out keyword causes arguments to be passed by reference. It makes
        the formal parameter an alias for the argument, which must be a
        variable. In other words, any operation on the parameter is made on
        the argument. It is like the ref keyword, except that ref requires
        that the variable be initialized before it is passed. It is also like
        the in keyword, except that in does not allow the called method to
        modify the argument value. To use an out parameter, both the method
        definition and the calling method must explicitly use the out keyword.




        public bool ViaOutParams(out int first, out int second)

        first = 1;
        second = 2;
        return someCondition;


        ...

        if(ViaOutParams(out var firstInt, out var secondInt))
        Console.WriteLine($"firstInt, secondInt");


        Out Value Tuple



        public bool ViaOutTuple(out (int first,int second) output)

        output = (1, 2);
        return someCondition;


        ...

        if (ViaOutTuple(out var output))
        Console.WriteLine($"output.first, output.second");





        share|improve this answer















        Yes ValueTuple / Named Tuple (available in C# 7.1). The advantage is its the most succinct, its immutable, and its easy to construct.




        The ValueTuple struct has fields named Item1, Item2, Item3, and so on,
        similar to the properties defined in the existing Tuple types.



        However, when you initialize a tuple, you can use new language
        features that give better names to each field. Doing so creates a
        named tuple. Named tuples still have elements named Item1, Item2,
        Item3 and so on. But they also have synonyms for any of those elements
        that you have named. You create a named tuple by specifying the names
        for each element.




        private (double first, double second) GetHeight()

        return (1,2);


        ...

        var result = ViaNamedValueTuple();
        Console.WriteLine($"result.first, result.second");

        var (first, second) = ViaNamedValueTuple();
        Console.WriteLine($"first, second");


        Classic Tuple



        C# tuple type




        The .NET Framework already has generic Tuple classes. These classes,
        however, had two major limitations. For one, the Tuple classes named
        their properties Item1, Item2, and so on. Those names carry no
        semantic information. Using these Tuple types does not enable
        communicating the meaning of each of the properties. The new language
        features enable you to declare and use semantically meaningful names
        for the elements in a tuple.




        public Tuple<int, int> ViaClassicTuple()

        return new Tuple<int, int>(1,2);


        ...

        var tuple = ViaClassicTuple();
        Console.WriteLine($"tuple.Item1, tuple.Item2");


        Classic struct



        struct (C# Reference)




        A struct type is a value type that is typically used to encapsulate
        small groups of related variables, such as the coordinates of a
        rectangle or the characteristics of an item in an inventory.




        public struct ClassicStruct

        public int First get; set;
        public int Second get; set;
        public ClassicStruct(int first, int second)

        First = first;
        Second = second;



        ...

        public ClassicStruct ViaClassicStruct()

        return new ClassicStruct(1, 2);


        ...

        var classicStruct = ViaClassicStruct();
        Console.WriteLine($"classicStruct.First, classicStruct.Second");


        Readonly struct



        readonly (C# Reference)




        The readonly modifier on a struct definition declares that the struct
        is immutable. Every instance field of the struct must be marked
        readonly, as shown in the following example:




        public readonly struct ReadonlyStruct

        public int First get;
        public int Second get;
        public ReadonlyStruct(int first, int second)

        First = first;
        Second = second;



        ...

        public ReadonlyStruct ViaReadonlyStruct()

        return new ReadonlyStruct(1, 2);


        ...


        var readonlyStruct = ViaReadonlyStruct();
        Console.WriteLine($"readonlyStruct.First, readonlyStruct.Second");


        Simple Class



        Classes (C# Programming Guide)




        A type that is defined as a class is a reference type. At run time,
        when you declare a variable of a reference type, the variable contains
        the value null until you explicitly create an instance of the class by
        using the new operator, or assign it an object of a compatible type
        that may have been created elsewhere




        public class SomeClass

        public int First get; set;
        public int Second get; set;
        public SomeClass(int first, int second)

        First = first;
        Second = second;



        ...

        public SomeClass ViaSomeClass()

        return new SomeClass(1, 2);


        ...


        var someClass = ViaSomeClass();
        Console.WriteLine($"someClass.First, someClass.Second");


        Out parameters



        out parameter modifier (C# Reference)




        The out keyword causes arguments to be passed by reference. It makes
        the formal parameter an alias for the argument, which must be a
        variable. In other words, any operation on the parameter is made on
        the argument. It is like the ref keyword, except that ref requires
        that the variable be initialized before it is passed. It is also like
        the in keyword, except that in does not allow the called method to
        modify the argument value. To use an out parameter, both the method
        definition and the calling method must explicitly use the out keyword.




        public bool ViaOutParams(out int first, out int second)

        first = 1;
        second = 2;
        return someCondition;


        ...

        if(ViaOutParams(out var firstInt, out var secondInt))
        Console.WriteLine($"firstInt, secondInt");


        Out Value Tuple



        public bool ViaOutTuple(out (int first,int second) output)

        output = (1, 2);
        return someCondition;


        ...

        if (ViaOutTuple(out var output))
        Console.WriteLine($"output.first, output.second");






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 8 at 11:43

























        answered Apr 8 at 8:50









        Michael RandallMichael Randall

        38.3k84573




        38.3k84573







        • 1





          Note: Available in C# 7.0 +.

          – Adriani6
          Apr 8 at 8:50











        • Perhaps a struct would be more appropriate than a class, if the intention is to keep value passing.

          – Petter Pettersson
          Apr 11 at 9:57












        • 1





          Note: Available in C# 7.0 +.

          – Adriani6
          Apr 8 at 8:50











        • Perhaps a struct would be more appropriate than a class, if the intention is to keep value passing.

          – Petter Pettersson
          Apr 11 at 9:57







        1




        1





        Note: Available in C# 7.0 +.

        – Adriani6
        Apr 8 at 8:50





        Note: Available in C# 7.0 +.

        – Adriani6
        Apr 8 at 8:50













        Perhaps a struct would be more appropriate than a class, if the intention is to keep value passing.

        – Petter Pettersson
        Apr 11 at 9:57





        Perhaps a struct would be more appropriate than a class, if the intention is to keep value passing.

        – Petter Pettersson
        Apr 11 at 9:57













        21














        Multiple ways:




        1. out parameters:



          private double GetHeight(out int anotherValue)

          anotherValue = 42;
          return 2;




        2. value-tuples:



          private (double height, int anotherValue) GetHeight()

          return (42, 2);



          (warning: value-tuples have known problems if used in .NET Standard libraries, as the assembly bindings from .NET Standard to .NET Framework are ... kinda fubar)




        3. custom return types:



          private Something GetHeight()

          return new Something(42, 2);



          (to avoid allocations, you may wish to define Something as a readonly struct in this scenario)







        share|improve this answer





























          21














          Multiple ways:




          1. out parameters:



            private double GetHeight(out int anotherValue)

            anotherValue = 42;
            return 2;




          2. value-tuples:



            private (double height, int anotherValue) GetHeight()

            return (42, 2);



            (warning: value-tuples have known problems if used in .NET Standard libraries, as the assembly bindings from .NET Standard to .NET Framework are ... kinda fubar)




          3. custom return types:



            private Something GetHeight()

            return new Something(42, 2);



            (to avoid allocations, you may wish to define Something as a readonly struct in this scenario)







          share|improve this answer



























            21












            21








            21







            Multiple ways:




            1. out parameters:



              private double GetHeight(out int anotherValue)

              anotherValue = 42;
              return 2;




            2. value-tuples:



              private (double height, int anotherValue) GetHeight()

              return (42, 2);



              (warning: value-tuples have known problems if used in .NET Standard libraries, as the assembly bindings from .NET Standard to .NET Framework are ... kinda fubar)




            3. custom return types:



              private Something GetHeight()

              return new Something(42, 2);



              (to avoid allocations, you may wish to define Something as a readonly struct in this scenario)







            share|improve this answer















            Multiple ways:




            1. out parameters:



              private double GetHeight(out int anotherValue)

              anotherValue = 42;
              return 2;




            2. value-tuples:



              private (double height, int anotherValue) GetHeight()

              return (42, 2);



              (warning: value-tuples have known problems if used in .NET Standard libraries, as the assembly bindings from .NET Standard to .NET Framework are ... kinda fubar)




            3. custom return types:



              private Something GetHeight()

              return new Something(42, 2);



              (to avoid allocations, you may wish to define Something as a readonly struct in this scenario)








            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 8 at 10:28









            Toby Speight

            17.6k134469




            17.6k134469










            answered Apr 8 at 8:51









            Marc GravellMarc Gravell

            795k19821632567




            795k19821632567





















                3














                Yes, you can use Tuple:



                class Program

                static void Main(string[] args)

                Tuple<int, int> height = GetHeight();

                Console.WriteLine(height.Item1 + " - " + height.Item2);
                Console.ReadLine();


                private static Tuple<int, int> GetHeight()

                return new Tuple<int, int>(2, 3);




                OUTPUT:



                2 - 3






                share|improve this answer



























                  3














                  Yes, you can use Tuple:



                  class Program

                  static void Main(string[] args)

                  Tuple<int, int> height = GetHeight();

                  Console.WriteLine(height.Item1 + " - " + height.Item2);
                  Console.ReadLine();


                  private static Tuple<int, int> GetHeight()

                  return new Tuple<int, int>(2, 3);




                  OUTPUT:



                  2 - 3






                  share|improve this answer

























                    3












                    3








                    3







                    Yes, you can use Tuple:



                    class Program

                    static void Main(string[] args)

                    Tuple<int, int> height = GetHeight();

                    Console.WriteLine(height.Item1 + " - " + height.Item2);
                    Console.ReadLine();


                    private static Tuple<int, int> GetHeight()

                    return new Tuple<int, int>(2, 3);




                    OUTPUT:



                    2 - 3






                    share|improve this answer













                    Yes, you can use Tuple:



                    class Program

                    static void Main(string[] args)

                    Tuple<int, int> height = GetHeight();

                    Console.WriteLine(height.Item1 + " - " + height.Item2);
                    Console.ReadLine();


                    private static Tuple<int, int> GetHeight()

                    return new Tuple<int, int>(2, 3);




                    OUTPUT:



                    2 - 3







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Apr 8 at 8:53









                    JoKeRxbLaCkJoKeRxbLaCk

                    665318




                    665318





















                        2














                        Also you could use out parameters:



                        static void Main(string[] args)

                        int i, j;
                        GetHeight(out i, out j);


                        public static void GetHeight(out int i1, out int i2)

                        i1 = 1;
                        i2 = 2;






                        share|improve this answer



























                          2














                          Also you could use out parameters:



                          static void Main(string[] args)

                          int i, j;
                          GetHeight(out i, out j);


                          public static void GetHeight(out int i1, out int i2)

                          i1 = 1;
                          i2 = 2;






                          share|improve this answer

























                            2












                            2








                            2







                            Also you could use out parameters:



                            static void Main(string[] args)

                            int i, j;
                            GetHeight(out i, out j);


                            public static void GetHeight(out int i1, out int i2)

                            i1 = 1;
                            i2 = 2;






                            share|improve this answer













                            Also you could use out parameters:



                            static void Main(string[] args)

                            int i, j;
                            GetHeight(out i, out j);


                            public static void GetHeight(out int i1, out int i2)

                            i1 = 1;
                            i2 = 2;







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Apr 8 at 8:52









                            Michał TurczynMichał Turczyn

                            16.4k132241




                            16.4k132241





















                                0














                                Make a int array.Or another way is to create class.






                                share|improve this answer

























                                • an array is definitely a bad way here - that's pretty allocatey and the semantic meaning of each value is unclear; creating a class would also be relatively allocatey, but... a readonly struct would be fine

                                  – Marc Gravell
                                  Apr 8 at 8:51












                                • Its not bad but its not needed in current question.

                                  – Vuk Uskokovic
                                  Apr 8 at 8:52











                                • I'd rather have a class of strongly typed values that mean something rather than guessing how many are in the array and what their values represent

                                  – Jonesopolis
                                  Apr 8 at 8:52











                                • You can make a list too.

                                  – Vuk Uskokovic
                                  Apr 8 at 8:54











                                • @VukUskokovic that (list) has all the problems that arrays have, plus an extra object and layer of abstraction; making it a list just exacerbates the problem unless we are semantically returning a list of something

                                  – Marc Gravell
                                  Apr 8 at 8:54
















                                0














                                Make a int array.Or another way is to create class.






                                share|improve this answer

























                                • an array is definitely a bad way here - that's pretty allocatey and the semantic meaning of each value is unclear; creating a class would also be relatively allocatey, but... a readonly struct would be fine

                                  – Marc Gravell
                                  Apr 8 at 8:51












                                • Its not bad but its not needed in current question.

                                  – Vuk Uskokovic
                                  Apr 8 at 8:52











                                • I'd rather have a class of strongly typed values that mean something rather than guessing how many are in the array and what their values represent

                                  – Jonesopolis
                                  Apr 8 at 8:52











                                • You can make a list too.

                                  – Vuk Uskokovic
                                  Apr 8 at 8:54











                                • @VukUskokovic that (list) has all the problems that arrays have, plus an extra object and layer of abstraction; making it a list just exacerbates the problem unless we are semantically returning a list of something

                                  – Marc Gravell
                                  Apr 8 at 8:54














                                0












                                0








                                0







                                Make a int array.Or another way is to create class.






                                share|improve this answer















                                Make a int array.Or another way is to create class.







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Apr 8 at 8:54

























                                answered Apr 8 at 8:50









                                Vuk UskokovicVuk Uskokovic

                                599




                                599












                                • an array is definitely a bad way here - that's pretty allocatey and the semantic meaning of each value is unclear; creating a class would also be relatively allocatey, but... a readonly struct would be fine

                                  – Marc Gravell
                                  Apr 8 at 8:51












                                • Its not bad but its not needed in current question.

                                  – Vuk Uskokovic
                                  Apr 8 at 8:52











                                • I'd rather have a class of strongly typed values that mean something rather than guessing how many are in the array and what their values represent

                                  – Jonesopolis
                                  Apr 8 at 8:52











                                • You can make a list too.

                                  – Vuk Uskokovic
                                  Apr 8 at 8:54











                                • @VukUskokovic that (list) has all the problems that arrays have, plus an extra object and layer of abstraction; making it a list just exacerbates the problem unless we are semantically returning a list of something

                                  – Marc Gravell
                                  Apr 8 at 8:54


















                                • an array is definitely a bad way here - that's pretty allocatey and the semantic meaning of each value is unclear; creating a class would also be relatively allocatey, but... a readonly struct would be fine

                                  – Marc Gravell
                                  Apr 8 at 8:51












                                • Its not bad but its not needed in current question.

                                  – Vuk Uskokovic
                                  Apr 8 at 8:52











                                • I'd rather have a class of strongly typed values that mean something rather than guessing how many are in the array and what their values represent

                                  – Jonesopolis
                                  Apr 8 at 8:52











                                • You can make a list too.

                                  – Vuk Uskokovic
                                  Apr 8 at 8:54











                                • @VukUskokovic that (list) has all the problems that arrays have, plus an extra object and layer of abstraction; making it a list just exacerbates the problem unless we are semantically returning a list of something

                                  – Marc Gravell
                                  Apr 8 at 8:54

















                                an array is definitely a bad way here - that's pretty allocatey and the semantic meaning of each value is unclear; creating a class would also be relatively allocatey, but... a readonly struct would be fine

                                – Marc Gravell
                                Apr 8 at 8:51






                                an array is definitely a bad way here - that's pretty allocatey and the semantic meaning of each value is unclear; creating a class would also be relatively allocatey, but... a readonly struct would be fine

                                – Marc Gravell
                                Apr 8 at 8:51














                                Its not bad but its not needed in current question.

                                – Vuk Uskokovic
                                Apr 8 at 8:52





                                Its not bad but its not needed in current question.

                                – Vuk Uskokovic
                                Apr 8 at 8:52













                                I'd rather have a class of strongly typed values that mean something rather than guessing how many are in the array and what their values represent

                                – Jonesopolis
                                Apr 8 at 8:52





                                I'd rather have a class of strongly typed values that mean something rather than guessing how many are in the array and what their values represent

                                – Jonesopolis
                                Apr 8 at 8:52













                                You can make a list too.

                                – Vuk Uskokovic
                                Apr 8 at 8:54





                                You can make a list too.

                                – Vuk Uskokovic
                                Apr 8 at 8:54













                                @VukUskokovic that (list) has all the problems that arrays have, plus an extra object and layer of abstraction; making it a list just exacerbates the problem unless we are semantically returning a list of something

                                – Marc Gravell
                                Apr 8 at 8:54






                                @VukUskokovic that (list) has all the problems that arrays have, plus an extra object and layer of abstraction; making it a list just exacerbates the problem unless we are semantically returning a list of something

                                – Marc Gravell
                                Apr 8 at 8:54




                                Popular posts from this blog

                                Romeo and Juliet ContentsCharactersSynopsisSourcesDate and textThemes and motifsCriticism and interpretationLegacyScene by sceneSee alsoNotes and referencesSourcesExternal linksNavigation menu"Consumer Price Index (estimate) 1800–"10.2307/28710160037-3222287101610.1093/res/II.5.31910.2307/45967845967810.2307/2869925286992510.1525/jams.1982.35.3.03a00050"Dada Masilo: South African dancer who breaks the rules"10.1093/res/os-XV.57.1610.2307/28680942868094"Sweet Sorrow: Mann-Korman's Romeo and Juliet Closes Sept. 5 at MN's Ordway"the original10.2307/45957745957710.1017/CCOL0521570476.009"Ram Leela box office collections hit massive Rs 100 crore, pulverises prediction"Archived"Broadway Revival of Romeo and Juliet, Starring Orlando Bloom and Condola Rashad, Will Close Dec. 8"Archived10.1075/jhp.7.1.04hon"Wherefore art thou, Romeo? To make us laugh at Navy Pier"the original10.1093/gmo/9781561592630.article.O006772"Ram-leela Review Roundup: Critics Hail Film as Best Adaptation of Romeo and Juliet"Archived10.2307/31946310047-77293194631"Romeo and Juliet get Twitter treatment""Juliet's Nurse by Lois Leveen""Romeo and Juliet: Orlando Bloom's Broadway Debut Released in Theaters for Valentine's Day"Archived"Romeo and Juliet Has No Balcony"10.1093/gmo/9781561592630.article.O00778110.2307/2867423286742310.1076/enst.82.2.115.959510.1080/00138380601042675"A plague o' both your houses: error in GCSE exam paper forces apology""Juliet of the Five O'Clock Shadow, and Other Wonders"10.2307/33912430027-4321339124310.2307/28487440038-7134284874410.2307/29123140149-661129123144728341M"Weekender Guide: Shakespeare on The Drive""balcony"UK public library membership"romeo"UK public library membership10.1017/CCOL9780521844291"Post-Zionist Critique on Israel and the Palestinians Part III: Popular Culture"10.2307/25379071533-86140377-919X2537907"Capulets and Montagues: UK exam board admit mixing names up in Romeo and Juliet paper"Istoria Novellamente Ritrovata di Due Nobili Amanti2027/mdp.390150822329610820-750X"GCSE exam error: Board accidentally rewrites Shakespeare"10.2307/29176390149-66112917639"Exam board apologises after error in English GCSE paper which confused characters in Shakespeare's Romeo and Juliet""From Mariotto and Ganozza to Romeo and Guilietta: Metamorphoses of a Renaissance Tale"10.2307/37323537323510.2307/2867455286745510.2307/28678912867891"10 Questions for Taylor Swift"10.2307/28680922868092"Haymarket Theatre""The Zeffirelli Way: Revealing Talk by Florentine Director""Michael Smuin: 1938-2007 / Prolific dance director had showy career"The Life and Art of Edwin BoothRomeo and JulietRomeo and JulietRomeo and JulietRomeo and JulietEasy Read Romeo and JulietRomeo and Julieteeecb12003684p(data)4099369-3n8211610759dbe00d-a9e2-41a3-b2c1-977dd692899302814385X313670221313670221

                                Creating closest line along the point''s azimuth using PostgreSQL Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Drawing line between points at specific distance in PostGIS?How to efficiently find the closest point over the dateline?How to find the nearest point by using PostGIS function?PostGIS nearest point with LATERAL JOIN in PostgreSQL 9.3+Creating a table and inserting selected streets using plpgsql functionsCreating a table that stores Distances and other columnSaving select query results (year wise) from PostgreSQL/PostGIS to text filesWhat is the information behind this geometry?How to give start and end vertex ids dynamically in pgr_dijkstra?Point to Polygon nearest distance DS_distance is not using geography index & knn <-> or <#> does not give result in orderLine to point conversion with start point and end point detection?

                                Crop image to path created in TikZ? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Crop an inserted image?TikZ pictures does not appear in posterImage behind and beyond crop marks?Tikz picture as large as possible on A4 PageTransparency vs image compression dilemmaHow to crop background from image automatically?Image does not cropTikzexternal capturing crop marks when externalizing pgfplots?How to include image path that contains a dollar signCrop image with left size given