Keeda
Keeda
CC#
Created by Keeda on 5/25/2023 in #help
❔ How can I import json file inside a sass file?
I have looked around in the web for various solutions and found it could be done easily in javascript with a node package called node-sass and sass-json-importer something like that. But none of that solution works according to my requirement. What I am looking for is a nuget package which can help my life easier? I came across this nuget package called LibSassHost it can compile sass files with imported json into css files but whenever I compile them via code it through exception regarding the wrong sass format. There is another extension webcompiler in VS2022 can I use this to achieve the same but from my knowledge it doesn't allows json imported statements at the top. Basically What I want to do is get some variables like hosturl etc from some json file and then be able to import that json file inside a sass file so I can use the urls in various classes? Does this makes any sense?
6 replies
CC#
Created by Keeda on 12/27/2022 in #help
❔ When does the IDisposable objects gets automatically disposed ?
public bool Method()
{
bool result = false;
using(var disposableClass = new DisposableClass())
{
result = disposableClass.SomeMethod();
//1. return result;
}
return result; //2.
}
public bool Method()
{
bool result = false;
using(var disposableClass = new DisposableClass())
{
result = disposableClass.SomeMethod();
//1. return result;
}
return result; //2.
}
Now my question is in which case the memory will be disposed if I return it inside the using case or outside of the using case or if it does not matters where the result is returned?
10 replies
CC#
Created by Keeda on 10/12/2022 in #help
Hi I want to know about this in keyword used in the attached image. [Answered]
20 replies