« first day (3111 days earlier)      last day (2063 days later) » 
00:00 - 14:0014:00 - 00:00

14:11
@ActionHank yes i solve it ..i create a string list add item in it and then create the object of class which consist list and pass this list and solve the problem...thanks
14:21
@zubairz Show me
var imageNames = new List<String>();
imageNames.Add("Foo");
var imageFileName = new ImageFileName();
imageFileName.ImageName = imageNames;
i bet
14:37
Why .Add when you can replace?
you cant replace since there is nothing to replace
replace(nothing, with = something)
> InvalidOperationException: Found nothing to be replaced.
hello ;-)
henlo
just popping in to say hi. just got the placement and will be using c#/.net etc, switching from Python
welcome
14:43
You will regret this
@J.Doe thanks pal:D
in a few weeks, you will wish that you have chosen Java :p
@PawelFlajszer Welcome to the world of strictly typed languages.
I do know some C though ;>
it was my first language
But after a year, mby two you will fall in love in C#
14:45
C and C# have equally as much in common as Java and JavaScript
and as Car and Carpet
Well some cars have carpets
and some Javas have Javascript
C++ and C# are almost identical when you forget about heap and stay with unsafe
There are no pointers here
14:46
There are actually
There are pointers
no memory allocation, that's what I'm happy about :)
What do u mean?
malloc() calloc() free() and all
dynamic memory allocation
There are
14:48
oops
but they are taken care of in most cases I assume
Depend what you want to do
same with pointers, one doesn't really need to use them in most situations
but that's only what I heard
anyway I hope not to pester you guys too much
and not be an absolute pain :P
PS: i've missed curly braces and semicolons :)
Before you start c# build own small chapel where you will pray to MS
MS as in Microsoft?
I'm actually a Mac user
I am trying to use ef core but having multi threading issue. I registered it with AutoFac in the following way

builder.Register(c =>
{
var config = c.Resolve<IConfiguration>();

var opt = new DbContextOptionsBuilder<MyContext>();
opt.UseSqlServer(pricesConnection);

return new MyContext(opt.Options);
}).InstancePerLifetimeScope();
14:54
Im thinking seriously installing .NET CORE in a NAS I just bought, im a bit worried about not having a package manager in that tiny ARM box. Anyone has installed .net in such devices?
it'll be hard to use windows again, but hey... maybe i'll give it a second chance
@PawelFlajszer it's not necessary to work on Windows these days :) unless you want Windows desktop apps
@TomW Well, I'm using Visual Studio right now and .net and it works just fine. They'll force me to work on Windows at my workplace though
So far, I just checked debian armel repository is a good candidate for the package leeching, but sooo many dependencies to install.
@PawelFlajszer The most productive .net enviroment imho is windows+visual studio.
14:58
is there a Pythons List equivalent in C#? so: expandable, random access, easy adding/popping elements, iterable, and can contain different data types
super flexy
List<T>
oh.. That was easy;P I've seen some of this <> stuff but so far it scares me syntactically
@bradbury9 oh yeah I personally have no problem with Windows and can't imagine ever choosing to work on Linux given my limited experience of it
Different data types... Not best pactice in .net.
just saying, .net core on *nix with a variety of editors which now have good support
15:01
@bradbury9 well. it's allowed, but I never really put different data types in those anyway.
In python if you pop from a list say an Apple, an Orange and a Boat, and call Eat() on the Boat, what happens?
List<T> are typed. They do have .Add(), .Remove(), you can iterate, sort them... Check the API for more info docs.microsoft.com/en-us/dotnet/api/…
runtime error?
@bradbury9 thanks:)
My pleasure
15:04
There's also ArrayList, but that types everything in it as object which is pretty useless in C#. You'd be speculatively casting everywhere and that's just yuck
@TomW Broken theet?
id much rather have Python than JavaScript
I figure RuntimeBinderException is roughly equivalent to what you'd get in Python
15:47
ef core not being thread safe sucks
yo
mr5
mr5
@YousufHossain what you can do is to convert your singleton instances into transient so you'd have different instances of DbContexts
16:06
posted on April 23, 2019 by ericlippert

So far in this series we’ve very briefly looked at continuous distributions on doubles, and spent a lot of time looking at discrete distributions with small supports. Let’s take a look at a completely different kind of distribution that doesn’t … Continue reading →

 
2 hours later…
17:46
@mr5 I solved it using a factory interface. Now I am struggling with fixing unit tests
yo
anyone use Sessions in .Net Core?
 
1 hour later…
19:42
yo yo yo
if anyone can help much appreciated
0
Q: issues with parent page postback after closing child modal form

KooshI'm working on an ASP.NET application and I ran into an issue that I am unable to resolve. I have a parent form, called Form1.aspx which contains a Telerik RadGrid. On page load, this grid is completely empty. The user has the ability to add data, by clicking add, in this case a Rad Window opens:...

Where do application settings REALLY go? All the URLS and junk that an app needs, do they belong on the disk in files with it OR in a database really
20:47
@PaulDuer unfortunately, the answer is "it depends"
Hello everyone!
@PaulDuer Mike's right. I think "do we need a database anyway" is one consideration.
21:14
@TomW local functions do the dirty work of a class no? perhaps more hoops have to be made in javascript than ST languages.
@ChristianMatthew I guess so yeah. If you have a block of logic you want to appear more than once in a method but only to be used in that method, it gives you another level of isolation more restrictive than private
if I have a method that takes a class object as a parameter and I make modifications to the properties of that object in the method, is it redundant to return the object from the method? Since the original variable you passed in (outside the method) is basically the same thing and you can access it after the method completes
ex. is it bad to do this?
MyClass myobject = new MyClass()
MyClass returnValue = Execute(myobject);

or should I just change it to void return type
MyClass myobject = new MyClass()
Execute(myobject);
21:34
if you have a method like that,
ive seen libraries that separate the input and output object references
so you have two parameters
one of which stuff will be read and one of which stuff will be written to
you can provide an overload or extension method for one with a singular parameter
but I would try to avoid mutability as much as you can
I forget what that means (mutability)
you mean changing the original input object?
objects with properties that can change
C# loves them, but they are hideous
useful in some cases, necessary in others, but the remaining 95% should be immutable
really wont you have an explosion of objects in memory then?
21:45
not necessarily
and over worked / under paid garbage collector
garbage collected objects can be reused tho
not sure if CLR supports that
anyway, the approach of using a second argument is something I have seen many times
(that output object is also often returned from the method)
often called the destinationX
destinationMatrix, destinationVector, destinationList, destinationMyClass, etc
 
2 hours later…
23:20
any way to enable "edit and continue" for the tests project in my solution?
I just created a brand new .net core 2.2 web API project, I can stop in the controller and make changes, but when I add a test project and stop in a test, then try to move the next statement I get "Unable to set the next statement. This file does not exactly match the original version."
```
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
var asdf = 233;
var ff = 123;
Assert.IsTrue(asdf == 33);
}
}
}
```
so i break on the assert, then try to change asdf assignment and step back to it, but get the error dialog
00:00 - 14:0014:00 - 00:00

« first day (3111 days earlier)      last day (2063 days later) »