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
| container.Kernel.RegistrationCompleted += (_, __) => | |
| { | |
| if (registered) | |
| return; | |
| registered = true; | |
| container.Kernel.GetHandler(..).ComponentModel.Interceptors.Add(..); | |
| } |
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 interface ChangePasswordResult | |
| { } | |
| public class PasswordChanged : ChangePasswordResult | |
| { } | |
| public class ChangeNotAuthorized : ChangePasswordResult | |
| { } | |
| public static class ChangePasswordResultEx |
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.Collections.Generic; | |
| using System.Linq; | |
| using System.Reflection; | |
| using Xunit; | |
| using Xunit.Extensions; | |
| namespace MultiConnector.Conventions.Tests | |
| { | |
| using ServiceBus; |
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
| <xs:simpleType> | |
| <xs:restriction base="xs:string"> | |
| <xs:enumeration value="0"/> | |
| <xs:enumeration value="1"/> | |
| <xs:enumeration value=""/> | |
| </xs:restriction> | |
| </xs:simpleType> |
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
| static string CreateQueryUrl(Maybe<string> locality, Maybe<string> street, Maybe<string> name) | |
| { | |
| return LocalityStreetNameQuery(locality, street, name). | |
| Or(LocalityNameQuery(locality, name)). | |
| Or(StreetNameQuery(street, name)). | |
| Or(NameQuery(name)). | |
| Return(); | |
| } |
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
| class A { | |
| public int Prop1; | |
| public string Prop2; | |
| } | |
| class B { | |
| public int Prop1 { get; set; } | |
| public string Prop2 { get; set; } | |
| } |
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
| protected XElement TransformDates(XElement inputXml, string schema) | |
| { | |
| var inputXmlDoc = new XmlDocument(); | |
| inputXmlDoc.Load(inputXml.CreateReader()); | |
| var asm = GetType().Assembly; | |
| //get namespace from xml | |
| var xmlString = inputXmlDoc.DocumentElement.OuterXml; | |
| var xPathXml = new XPathDocument(inputXml.CreateReader()); | |
| var navigator = xPathXml.CreateNavigator(); | |
| navigator.MoveToFollowing(XPathNodeType.Element); |
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 DateTime ToLocalTime(this DateTime utcDate, string timeZoneId) { | |
| var timeZone = TimeZoneInfo.FindSystemTimeZoneById(timeZoneId); | |
| var utc = new DateTimeOffset(DateTime.SpecifyKind(utcDate, DateTimeKind.Utc)); | |
| return utc.ToOffset(timeZone.GetUtcOffset(utcDate)).DateTime; | |
| } |
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 IQueryOver<TResult, TResult> ApplyFilter<TFilter, TResult>( | |
| this IQueryOver<TResult, TResult> query, | |
| TFilter field, | |
| Func<TFilter, Expression<Func<TResult, bool>>> predicate) | |
| { | |
| field.ToMaybe().Do(x => query.Where(predicate(x))); | |
| return query; | |
| } | |
| public static IQueryOver<TResult, TResult> ApplyFilter<TField, TResult>( |
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
| bool nacteno = false; | |
| private void metNactiFotky() | |
| { | |
| flowLayoutPanel1.Controls.Clear(); | |
| cesta = "D:\\PedikuraFotky\\00_Nafocene"; // v této složce mám řekněme 20 fotek | |
| bool adrExist = Directory.Exists(cesta); |