This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.AspNetCore.Http; | |
| using System.IO; | |
| namespace System.Web | |
| { | |
| public static class HttpContext | |
| { | |
| private static IHttpContextAccessor _context; | |
| private static IWebHostEnvironment _hostingEnvironment; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:isolate'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| enum AsyncState { idle, loading, running } | |
| class AsyncMessage { | |
| final Function asyncMethod; | |
| List data; | |
| SendPort sendPort; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # base/models.py | |
| class ModelA(index.Indexed, models.Model): | |
| fields... | |
| class ModelAB(Orderable, ModelA): | |
| parent = ParentalKey('ModelB', on_delete=models.CASCADE, related_name='items_modelA') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class GroupedDropDownList | |
| { | |
| public string Name { get; set; } | |
| public List<SelectListItem> Values { get; set; } | |
| public GroupedDropDownList() | |
| { | |
| Values = new List<SelectListItem>(); | |
| } | |
| } |