Skip to content

Instantly share code, notes, and snippets.

View rollsch's full-sized avatar

0x5F3759DF rollsch

View GitHub Profile
@rollsch
rollsch / infineon-roca.md
Created February 12, 2025 22:06 — forked from hannob/infineon-roca.md
Affected Products and Keys by Infineon RSA vulnerability
/// <summary>
/// Gets or the current customer if they are registered, if not registered it returns null
/// </summary>
[CanBeNull]
public virtual Customer CurrentRegisteredCustomer
{
get
{
//whether there is a cached value
if (_cachedCustomer != null)
public static void SwitchPattern(object o)
{
switch (o)
{
case null:
Console.WriteLine("it's a constant pattern");
break;
case int i:
Console.WriteLine("it's an int");
break;