internal set
. А сделать это просто - рефлексия:SomeClass obj = (SomeClass) typeof(SomeClass).GetConstructor(
BindingFlags.NonPublic | BindingFlags.Instance,
null, Type.EmptyTypes, null).Invoke(null);
internal
get
без set
IsDBNull
- https://learn.microsoft.com/ru-RU/dotnet/api/syste...if (!reader.IsDBNull(14))
ad = reader.GetString(14);
За счет чего в WS поддерживается постоянное соединение
скорость работы по WS увеличивается только за счет того, что у нас пропадают рукопожатия?
Over the last several years we’ve seen a whole range of ideas regarding the architecture of systems. These include:
Hexagonal Architecture (a.k.a. Ports and Adapters) by Alistair Cockburn and adopted by Steve Freeman, and Nat Pryce in their wonderful book Growing Object Oriented Software
Onion Architecture by Jeffrey Palermo
Screaming Architecture from a blog of mine last year
DCI from James Coplien, and Trygve Reenskaug.
BCE by Ivar Jacobson from his book Object Oriented Software Engineering: A Use-Case Driven Approach
C:\Users\vetements\Desktop\xdesantiago\misc\plugin\KinoPoiskFree.py
на 9 строке у тебя есть код rt=a.find('a')['href'][:-6]
- скорее всего ты ищешь все ссылки и хочешь получить 6 последних из найденных тэгов, которые хранишь в переменной a
. None
). Проверяй выше, что данные были найдены, т.е. a is not None
create table product_steam_info(product_id int, level int, balance double)
и для телеги соответственно.create table products(product_id int, steam_level int, telegram_is_premium boolean)
#include <IServiceFactory.h>
class Sample {
private:
IServiceFactory _factory;
public:
Sample(IServiceFactory factory): _factory(factory) { }
DoSomething() {
auto service = _factory.CreateService();
service.MakeStuff();
}
}
int main() {
auto factory = ServiceFactoryImpl(); // Читаем конфигурацию, параметры ОС и др.
auto sample = Sample(factory);
sample.DoSomething();
}
var dict = new Dictionary<MyNullableInt, string>();
dict[null] = "hello, world!";
Console.WriteLine(dict[null]); // Output: hello, world!
struct MyNullableInt: IEquatable<MyNullableInt>, IEquatable<int?>
{
public int? Value { get; set; }
public bool Equals(MyNullableInt other)
{
return other.Value == Value;
}
public bool Equals(int? other)
{
return other == Value;
}
public static implicit operator MyNullableInt(int? value)
{
return new MyNullableInt() {Value = value};
}
public static implicit operator int?(MyNullableInt value)
{
return value.Value;
}
public override bool Equals(object? obj)
{
if (obj is int value)
{
return value == Value;
}
if (obj is MyNullableInt mni)
{
return mni.Value == Value;
}
return false;
}
public override int GetHashCode()
{
return Value.GetHashCode();
}
}