Timeline for What's the difference between "to" and "as" method name prefixes?
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 6, 2017 at 14:31 | comment | added | Martin Maat | @JaquesB Apparently different ideas have been applied here and there. Delphi has AsInteger and AsString properties on TField objects (which encapsulate database fields). I may have been biased by this. But then again, the question is tagged with Java, not with either C# or Delphi. | |
| Jul 6, 2017 at 13:32 | comment | added | JacquesB | I don't think this answer really matces the conventions in C#. Eg. ToList() and AsEnumerable() both return complex objects, the difference is ToList() always returns a new object while AsEnumerable() returns a view or adapter over the original object. | |
| Jul 4, 2017 at 20:34 | history | edited | Martin Maat | CC BY-SA 3.0 |
added 1007 characters in body
|
| Jul 4, 2017 at 20:11 | comment | added | Martin Maat | You got me there. I think AsString would have been more appropriate. Ibhave some additionao thoughts, I will update my answer. | |
| Jul 4, 2017 at 19:57 | comment | added | Deduplicator |
What about toString()?
|
|
| Jul 4, 2017 at 19:35 | history | answered | Martin Maat | CC BY-SA 3.0 |