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 Rebundler | |
{ | |
private readonly Assembly assembly; | |
private readonly string virtualPath; | |
private readonly HashSet<string> resourceNames = new HashSet<string>(); | |
//constructor | |
public Rebundler(Assembly assembly, string virtualPath) | |
{ | |
this.assembly = assembly; |
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 ImageBundle | |
{ | |
private readonly Assembly assembly; | |
private readonly HashSet<string> resourceNames = new HashSet<string>(); | |
//constructor | |
public ImageBundle(Assembly assembly) | |
{ | |
this.assembly = assembly; | |
} |
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
/// <summary> | |
/// return filtered data | |
/// </summary> | |
/// <param name="receivedDt">original data</param> | |
/// <param name="contentCondition">filter condition</param> | |
/// <returns>new data table</returns> | |
public static DataTable GetDataFilter(DataTable receivedDt, List<TEUserObjectReportFilterModel> contentCondition) | |
{ | |
DataTable newDt = null; | |
try |
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 static DataTable GetReportFilter(List<TEUserObjectReportFilterModel> _ModelField, List<TEUserObjectReportFilterModel> _ModelContent, DataTable DtReport) | |
{ | |
DataTable _dt = DtReport.Clone(); | |
DataTable _dtreturn = new DataTable(); | |
try | |
{ | |
foreach (TEUserObjectReportFilterModel _ObjTmp in _ModelField) | |
{ | |
try |
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 System; | |
using System.Linq; | |
// you can also use other imports, for example: | |
// using System.Collections.Generic; | |
// you can write to stdout for debugging purposes, e.g. | |
// Console.WriteLine("this is a debug message"); | |
class Solution { | |
public int solution(int N) { |
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 System; | |
using System.Linq; | |
// you can also use other imports, for example: | |
// using System.Collections.Generic; | |
// you can write to stdout for debugging purposes, e.g. | |
// Console.WriteLine("this is a debug message"); | |
class Solution { | |
public int[] solution(int[] A, int K) { |
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 System; | |
// you can also use other imports, for example: | |
// using System.Collections.Generic; | |
// you can write to stdout for debugging purposes, e.g. | |
// Console.WriteLine("this is a debug message"); | |
class Solution { | |
public int solution(int[] A) { | |
int result = 0; |
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 System; | |
using System.Linq; | |
// you can also use other imports, for example: | |
// using System.Collections.Generic; | |
// you can write to stdout for debugging purposes, e.g. | |
// Console.WriteLine("this is a debug message"); | |
class Solution { | |
public int solution(int[] A) { |
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 System; | |
// you can also use other imports, for example: | |
// using System.Collections.Generic; | |
// you can write to stdout for debugging purposes, e.g. | |
// Console.WriteLine("this is a debug message"); | |
class Solution { | |
public int solution(int X, int Y, int D) { | |
if ((Y - X) < D && Y != X) return 1; |
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 System; | |
// you can also use other imports, for example: | |
// using System.Collections.Generic; | |
// you can write to stdout for debugging purposes, e.g. | |
// Console.WriteLine("this is a debug message"); | |
class Solution { | |
public int solution(int[] A) { | |
double sum = 0; |
OlderNewer